6
votes

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 ?

1
What is the code you are using to populate the checkbox column? - SO User
//in the designer this.IsFixedReference.DataPropertyName = "IsFixedReference"; this.IsFixedReference.HeaderText = "Fixed"; this.IsFixedReference.Name = "IsFixedReference"; // in a function appDataSeriesBindingSource.DataSource = new List<AppDataSeries>(av.DataSeriesList); // AppDataSeries has IsFixedReference as a boolean property - mustafabar

1 Answers

7
votes

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