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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top