I have a problem with a Datagridview.
This grid has a combobox column, a checkbox column and the rest are textboxes with diferents formats (integer and string).
I load the data from a database to a datatable object, then I set the grid source with that datatable object. And the problem begins when I sort.
When the data is already load, then I want to sort a field (a textbox column field). When I sort the combobox column and the checkbox column appear on blank with no value selected.
Also the grid has a headerclick event. When you click the CheckBox column header selects and unselects all. Also has a painting event. I guess that maybe that event is the cause.
DataGridView Paint Combox Column Issue
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Hector Hugo Alpizar CesenaRank #5,573 · 294 reputationPosted Mar 23, 2010, 11:44 AM EDT
I only did load the database info directly to grid with a loop. I only ignored the datatable object.