Want bi-state not tri-state checkbox in datagrid

R

Rod

I am adding a checkbox to a datagrid in the normal way (see below), but I
end up with a tri-state checkbox.
I only want a bi-state one and I can not see how to arrange this.
Many thanks

rod

------

Dim myCol As DataGridColumnStyle

myCol = New DataGridBoolColumn

myDataGridStyle.GridColumnStyles.Add(myCol)
 
R

Rod

Sorry, I'm not getting this.
I don't know where to access the check box property
The datagrid is actually a user control, but I don't think that is
important.
The checkbox is added using DataGridStyles (see code snippet at end)
 
S

Stoitcho Goutsev \(100\)

Rod,

I'm sorry I didn't see your code snippet and didn't see that you are talking
DataGrid here.

Try this. Tyr to set column set AllowNull of DataGridBoolColumn to *false*.
 
R

Rod

Great, that did the trick.

Thank you.



Stoitcho Goutsev (100) said:
Rod,

I'm sorry I didn't see your code snippet and didn't see that you are talking
DataGrid here.

Try this. Tyr to set column set AllowNull of DataGridBoolColumn to *false*.
 

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

Top