DataGrid null columns

Machaira

Junior Contributor
Joined
Aug 19, 2002
Messages
325
Location
Abingdon, MD
DataGrid null columns (resolved)

Maybe I'm missing something. I have a datatable with a field that's a bit type. Due to joins the field could be null. I'm binding the field to a DataGridBoolColumn column style. For the null entries it shows up as a greyed out checked checkbox. I've set the NullValue property for the column style to False and the AllowNull property to both True and False, but I can't seem to get the null entries to display as an unchecked checkbox. Any help would be appreciated.

edit: sister board suggestion - use IsNull in the SQL to change the nulls to 0
 
Last edited:
Back
Top