Click here to Skip to main content
14,668,030 members
Rate this:
Please Sign up or sign in to vote.
See more:

I have a DataGridView control containing several columns one of which is a CheckBoxColumn. Clicking any of the CheckBoxes in this column fires the CellContentClick event which perfoms a task using the value of the clicked CheckBox. However, the value of the CheckBox doesn't seem to update until the cell loses focus, which is a problem for the task I am trying to achieve.

Anybody help me on this one? Thanks.

EDIT : Sorted it I think using the CommitEdit method of the grid.

modified on Wednesday, August 5, 2009 7:46 AM

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

In the CellContentClick event, you will get the updated value in the EditedFormattedValue property of the cell and not in the Value property.


CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100