By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,234 Members | 1,850 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,234 IT Pros & Developers. It's quick & easy.

checkbox in datagrid

P: n/a
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

Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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" wrote:
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

Nov 21 '05 #2

P: n/a
In my sql server's table, what type i should use "bit" ? or small int ??
Thanks
"Rulin Hong" <Ru*******@discussions.microsoft.com> bl
news:1D**********************************@microsof t.com g...
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" wrote:
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

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.