W
Wayne Wengert
I have a datagrid bound to dataset where some entries are null. In that grid
I am defining a column as Boolean (see code below) and I get the expected
checkbox which is checked or unchecked when the DB value is 0 or 1 but when
it is null, I get a grayed out checkbox that is checked. I want the null
values to display nothing - like with the null text in a textbox. How can I
accomplish that?
TIA
Wayne
============= Code to define column ==================
' Define Wait Column
Dim objWaitCol As New DataGridBoolColumn
objWaitCol.MappingName = "Wait"
objWaitCol.HeaderText = "Wait"
objWaitCol.Width = 50
objWaitCol.Alignment = HorizontalAlignment.Center
objWaitCol.NullText = ""
'Add the column to the styles
objRegsDataGridTableStyle.GridColumnStyles.Add(objWaitCol)
I am defining a column as Boolean (see code below) and I get the expected
checkbox which is checked or unchecked when the DB value is 0 or 1 but when
it is null, I get a grayed out checkbox that is checked. I want the null
values to display nothing - like with the null text in a textbox. How can I
accomplish that?
TIA
Wayne
============= Code to define column ==================
' Define Wait Column
Dim objWaitCol As New DataGridBoolColumn
objWaitCol.MappingName = "Wait"
objWaitCol.HeaderText = "Wait"
objWaitCol.Width = 50
objWaitCol.Alignment = HorizontalAlignment.Center
objWaitCol.NullText = ""
'Add the column to the styles
objRegsDataGridTableStyle.GridColumnStyles.Add(objWaitCol)