checkbox in datagrid

  • Thread starter Thread starter Agnes
  • Start date Start date
A

Agnes

I can put the checkbox in datagrid, but as I want to update , it said "
string or integer cannot be truncated"
In mytable, i set the datatype is "bit" , does it correct ?? [for the
checkbox]
Btw, How can I disallow the datagrid (for append mode) ???
thanks
 
suggestions:
1. Use DataGridBoolColumn instead of putting checkbox in datagrid
2. DataType in DataColumn should be boolean
3. Set dataView.addnew property to false and set the dataview to
datagrid.datasource will avoid append record in datagrid.

Good Luck
 
In my sql server's table, what type i should use "bit" ? or small int ??
Thanks
Rulin Hong said:
suggestions:
1. Use DataGridBoolColumn instead of putting checkbox in datagrid
2. DataType in DataColumn should be boolean
3. Set dataView.addnew property to false and set the dataview to
datagrid.datasource will avoid append record in datagrid.

Good Luck

Agnes said:
I can put the checkbox in datagrid, but as I want to update , it said "
string or integer cannot be truncated"
In mytable, i set the datatype is "bit" , does it correct ?? [for the
checkbox]
Btw, How can I disallow the datagrid (for append mode) ???
thanks
 

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