Datagrid Checkbox

  • Thread starter Thread starter nick
  • Start date Start date
N

nick

How do I make the bool column "unchecked" by default instead of
"greyed out" (indeterminate)? Here's the code for the bool column:

BoolColFinished = new DataGridBoolColumn();
BoolColFinished.MappingName = "finished";
BoolColFinished.HeaderText = "done";
BoolColFinished.FalseValue = false;
BoolColFinished.TrueValue = true;
BoolColFinished.AllowNull = false;
 
Are you using a DataSet? Set in the XML of the DataTable a default value: <
.... default=false>
 
Hi Nick,

I am glad you got what you want.

If you still have anything unclear, please feel free to post, we will help
you.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top