Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ThreeState Property for a DataGridBoolColumn Object

Status
Not open for further replies.

mbutch

Programmer
Nov 17, 2000
100
US
I have a datagrid that gets populated with true/false info, but the checkboxes allow the user to click through all three states: true, false and null. I don't want them to be able to select the null state.

I format the DataGrid by Adding a table style. The true/false columns are formated using the DataGridBoolColumn object, but there is no ThreeState property to set.

How do I set the ThreeState property to false for the check boxes created for the datagrid?

Thanks,

Mike
 

You need to set the DataGridBoolColumn's AllowNull property to false.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top