开发者

Checkbox in Datagridview cannot be changed

开发者 https://www.devze.com 2022-12-15 16:12 出处:网络
I\'ve created a Datagridview bound to a Datatable. This Datatable is updated by a event to reflect statistical information as it changes (sub second resolution). I have a checkbox to determine if a ro

I've created a Datagridview bound to a Datatable. This Datatable is updated by a event to reflect statistical information as it changes (sub second resolution). I have a checkbox to determine if a row is available for other functions and can be toggled on and off normally if my eventhandler is not receiving my updates.

If my bound Datatable is changed, the checkbox returns to its previous state as soon as the cursor or focus leaves the checkbox glyph (not the cell).

How do I toggle the checkboxes 开发者_如何学JAVAwithout them reseting without disconnecting my eventhandler?


Avoid dataBinding. Manually create DataGridView rows. Then handle checkboxcell's events.

0

精彩评论

暂无评论...
验证码 换一张
取 消