一旦单元格值更改,有什么可以触发网格视图上的事件吗?
最好的问候,
解决方案我的同事建议您捕获CurrentCellDirtyStateChanged事件。请参阅 msdn.microsoft/ en-us / library / system.windows.forms.datagridview.currentcelldirtystatechanged.aspx 。
I have a grid view that has a check box column, and I want to trigger a drawing event as soon as the value of the cell is toggled. I tried the ValueChaged and the CellEndEdit and BeginEdit, and chose the selection mode as CellSelect. As for the the first 2 events, the event was triggered upon the finishing of the edit mode, like moving out of the current cell, or going back and forth. It's just a weird behavior.
Is there anything that triggers the event on the grid view as soon as the cell value is changed?
Best Regards,
解决方案A colleague of mine recommends trapping the CurrentCellDirtyStateChanged event. See msdn.microsoft/en-us/library/system.windows.forms.datagridview.currentcelldirtystatechanged.aspx.
更多推荐
触发DataGridView中的复选框值更改事件
发布评论