Click here to Skip to main content
15,887,214 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to send cell value from DataGrid to text file? Pin
Richard MacCutchan3-Dec-14 6:31
mveRichard MacCutchan3-Dec-14 6:31 
GeneralRe: How to send cell value from DataGrid to text file? Pin
Member 100245173-Dec-14 7:41
Member 100245173-Dec-14 7:41 
QuestionCreate Hotel Room Booking Calendar Pin
KissGnv2-Dec-14 23:44
KissGnv2-Dec-14 23:44 
AnswerRe: Create Hotel Room Booking Calendar Pin
ixilom3-Dec-14 1:35
ixilom3-Dec-14 1:35 
GeneralRe: Create Hotel Room Booking Calendar Pin
KissGnv3-Dec-14 3:05
KissGnv3-Dec-14 3:05 
AnswerRe: Create Hotel Room Booking Calendar Pin
BillWoodruff3-Dec-14 1:36
professionalBillWoodruff3-Dec-14 1:36 
GeneralRe: Create Hotel Room Booking Calendar Pin
KissGnv3-Dec-14 3:11
KissGnv3-Dec-14 3:11 
GeneralRe: Create Hotel Room Booking Calendar Pin
BillWoodruff3-Dec-14 12:47
professionalBillWoodruff3-Dec-14 12:47 
KissGnv wrote:
After your suggestion, I think tablelayoutpanel is not a good solution
Please, note that I did not directly advise you to avoid using a TableLayoutPanel; I simply told you about my experience a few years ago with it.

I strongly advise you to check out Jing Lu's open-source ReoGrid Control which has an article on CodeProject here: [^], and a web-site here: [^]. ReoGrid does everything but walk your dog, and is very, very fast. Note that the license model for ReoGrid may have changed, on the article on CP it's LPGL; I have written Jing asking him to clarify the current license model.

Why not create a prototype to test, on the type of hardware you'll run your app on, that loads a TableLayoutPanel with as many Controls with synthesized sample data as you think you might need a maximum of, and then observe the speed of response.

Here's some code I used a few years ago: [^]. I suggest you increase the integer Constants that control the number of Rows, and Column, and observe the performance as you scroll.

To use the code in the linked to archive: 'unRar it, and copy-paste the code in Form1.cs, and LabelEx.cs into:

0. create a new WinForms project, set the Main Form, 'Form1 'DoubleBuffered property to 'true. Size the Main Form to taste. Replace its code with the code in the archive for 'Form1.cs.

1. add a Component named 'LabelEx to your Project: replace its code in the file from the archive 'LabelEx.cs.

2. On the main Form: put a TableLayoutPanel named 'testTbl: size it and set its various properties appropriately. Put a Button on the Form named 'btnCreateLayoutPanel, and set its 'Click EventHandler to use the code in 'Form1.cs.
«OOP to me means only messaging, local retention and protection and hiding of state-process, and extreme late-binding of all things. »  Alan Kay's clarification on what he meant by the term "Object" in "Object-Oriented Programming."


modified 3-Dec-14 19:10pm.

GeneralRe: Create Hotel Room Booking Calendar Pin
PIEBALDconsult3-Dec-14 9:25
mvePIEBALDconsult3-Dec-14 9:25 
GeneralRe: Create Hotel Room Booking Calendar Pin
KissGnv3-Dec-14 20:23
KissGnv3-Dec-14 20:23 
GeneralRe: Create Hotel Room Booking Calendar Pin
BillWoodruff4-Dec-14 4:33
professionalBillWoodruff4-Dec-14 4:33 
AnswerRe: Create Hotel Room Booking Calendar Pin
syed shanu3-Dec-14 19:10
mvasyed shanu3-Dec-14 19:10 
AnswerRe: Create Hotel Room Booking Calendar Pin
SledgeHammer013-Dec-14 19:30
SledgeHammer013-Dec-14 19:30 
QuestionCreate Empty Node (Containing Child Node) Pin
AmbiguousName2-Dec-14 23:35
AmbiguousName2-Dec-14 23:35 
AnswerRe: Create Empty Node (Containing Child Node) Pin
Richard MacCutchan3-Dec-14 0:27
mveRichard MacCutchan3-Dec-14 0:27 
QuestionPopulate specifc Registry keys in Combobox Pin
Jassim Rahma2-Dec-14 18:43
Jassim Rahma2-Dec-14 18:43 
AnswerRe: Populate specifc Registry keys in Combobox Pin
BillWoodruff2-Dec-14 18:48
professionalBillWoodruff2-Dec-14 18:48 
AnswerRe: Populate specifc Registry keys in Combobox Pin
OriginalGriff2-Dec-14 21:38
mveOriginalGriff2-Dec-14 21:38 
GeneralRe: Populate specifc Registry keys in Combobox Pin
Richard MacCutchan2-Dec-14 21:47
mveRichard MacCutchan2-Dec-14 21:47 
AnswerRe: Populate specifc Registry keys in Combobox Pin
Richard MacCutchan2-Dec-14 21:49
mveRichard MacCutchan2-Dec-14 21:49 
Questionhow do i get the application name from the default value in Registry/LocalMachine/Software/Classes/.docx/shell/Open/Command Pin
zen.liu872-Dec-14 16:11
zen.liu872-Dec-14 16:11 
AnswerRe: how do i get the application name from the default value in Registry/LocalMachine/Software/Classes/.docx/shell/Open/Command Pin
syed shanu2-Dec-14 17:50
mvasyed shanu2-Dec-14 17:50 
QuestionPath stroke with multiple colors? Pin
SledgeHammer012-Dec-14 13:27
SledgeHammer012-Dec-14 13:27 
AnswerRe: Path stroke with multiple colors? Pin
BillWoodruff2-Dec-14 15:14
professionalBillWoodruff2-Dec-14 15:14 
GeneralRe: Path stroke with multiple colors? Pin
SledgeHammer012-Dec-14 17:26
SledgeHammer012-Dec-14 17:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.