mustafabar
mustafabar

Reputation: 2359

Checkbox not appearing in Winform GridView

I am binding a datagridview to a list of objects. One of its columns is a checkbox which is supposed to represent a bool property, the rest are comboboxes and textboxes. Everything is fine, but the checkbox cell is appearing as blank !

Also, when I assign the columntype, each type appears twice in the list e.g. DataGridViewCheckBoxColumn DataGridViewCheckBoxColumn? why is that happening ?

Upvotes: 7

Views: 4047

Answers (2)

Hafsa
Hafsa

Reputation: 37

change AutoSizeRowsMode=AllCells

Upvotes: 1

mustafabar
mustafabar

Reputation: 2359

I just had to increase the row height from 17 to 18 !! Figured it out by chance

Upvotes: 8

Related Questions