The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
CBClay 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
ADAdministrator 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
KAkamalJanuary 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
>