Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

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

Edited by Machaira
Here's what I'm up to.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...