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

C#

 
GeneralRe: Setting an instance object equal to my empty string. Pin
PIEBALDconsult3-Dec-14 8:07
mvePIEBALDconsult3-Dec-14 8:07 
GeneralRe: Setting an instance object equal to my empty string. Pin
Shweta N Mishra3-Dec-14 21:21
professionalShweta N Mishra3-Dec-14 21:21 
QuestionHow to send cell value from DataGrid to text file? Pin
Member 100245173-Dec-14 5:01
Member 100245173-Dec-14 5:01 
SuggestionRe: How to send cell value from DataGrid to text file? Pin
ZurdoDev3-Dec-14 5:14
professionalZurdoDev3-Dec-14 5:14 
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 
If you only need to display data I would still go for the DataGridView.
You can inherit DataGridViewCell and DataGridViewColumn to display pretty much anything you want by drawing things with the provided Graphics object in a overridden Paint (and PaintBorder) method.
Even if you need to edit some small things like, checkboxes it should be quite trivial to implement by drawing it yourself (lookup ControlPaint class) and handle mouse input.

For the how-to, I would suggest reading Robert Kanasz article: How to Create ProgressBar Column in DataGridView[^]
Also, look at Microsoft's documentation:
http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewcell%28v=vs.110%29.aspx
[^]
http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewcolumn%28v=vs.110%29.aspx[^]

If you need to have some sort of Control in a cell, you can still use the DataGridView, but it gets a bit more complex:
http://msdn.microsoft.com/en-us/library/7tas5c80.aspx?PHPSESSID=o1fb21liejulfgrptbmi9dec92[^]
The approach is almost the same, but you need to, in addition to the cell and column, create a control that implements IDataGridViewEditingControl.

Hope this was helpful Smile | :)
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 
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 

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.