Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DataGridview with multiple information in same columns

I have Database query result, which bind to DataGridView control. Result would be like in c#.

    Column id(hidden in display)    Description        amount.**
           1                          abc             9/8/7/6/5/4/3/2  (depend on query) non selectable option
           2                          cdesd           1 or 0 (Check box would be great)
           3                          dekskd          1 or 0 (Check box would be great)
           4                          gkekskd         0/1/2/3/4  combo-box with selection option

I searched many article. I couldn't find it. I would really appreciate if anyone help me out in this

like image 655
PantherUSA Avatar asked Dec 11 '25 07:12

PantherUSA


1 Answers

I would hook into the CellFormatting event. You can do custom formatting for that specific cell.

MSDN DataGridView.CellFormatting Event

like image 127
Chris Ayers Avatar answered Dec 12 '25 19:12

Chris Ayers



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!