We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

checkbox tristate

I have to click checkbox twice to make it checked/unchecked.It shows me a tristate in b/w. Please tell me how to avoid it.

3 Replies

CB Clay Burch Syncfusion Team July 3, 2002 05:27 PM UTC

> I have to click checkbox twice to make it checked/unchecked.It shows me a tristate in b/w. > Please tell me how to avoid it. > You need to: 1) add a TableStyle to your datagrid. 2) for each column add a columnstyle to this tablestyle 3) for the bool column, make sure to add a DataGridBoolColumn and set its AllowNull property to false. You can do this entirely from the designer, or entirely from code. For a code sample, check this FAQ: How can I put a checkbox in a column of my DataGrid? Check it out at: http://www.syncfusion.com/faq/winforms/search/754.asp


AD Administrator Syncfusion Team July 4, 2002 04:53 AM UTC

> > I have to click checkbox twice to make it checked/unchecked.It shows me a tristate in b/w. > > Please tell me how to avoid it. > > > > You need to: > 1) add a TableStyle to your datagrid. > 2) for each column add a columnstyle to this tablestyle > 3) for the bool column, make sure to add a DataGridBoolColumn and set its AllowNull property to false. > > You can do this entirely from the designer, or entirely from code. For a code sample, check this FAQ: > How can I put a checkbox in a column of my DataGrid? > > Check it out at: > http://www.syncfusion.com/faq/winforms/search/754.asp > thanx


KA kamal January 18, 2004 04:53 AM UTC

i have a similar problem when i add a new row to the grid the bool column appears in tristate b/w i have already set the allownulls to false rgds kamal > > I have to click checkbox twice to make it checked/unchecked.It shows me a tristate in b/w. > > Please tell me how to avoid it. > > > > You need to: > 1) add a TableStyle to your datagrid. > 2) for each column add a columnstyle to this tablestyle > 3) for the bool column, make sure to add a DataGridBoolColumn and set its AllowNull property to false. > > You can do this entirely from the designer, or entirely from code. For a code sample, check this FAQ: > How can I put a checkbox in a column of my DataGrid? > > Check it out at: > http://www.syncfusion.com/faq/winforms/search/754.asp >

Loader.
Live Chat Icon For mobile
Up arrow icon