I have a winforms app and want to trigger some code when a checkbox embedded in a DataGridView
control is checked / unchecked. Every event I have tried either
- Triggers as soon as the
CheckBox
is clicked but before its checked state changes, or
- Triggers only once the
CheckBox
looses its focus
I can't seem to find event that triggers immediately after the checked state changes.
Edit:
What I am trying to achieve is that when the checked state of a CheckBox
in one DataGridView
changes, the data in two other DataGridView
s changes. Yet all the events I have used, the data in the other grids only changes after the CheckBox
in the first DataGridView
looses focus.
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…