Search code examples
c#.netwinformsradgridview

How to detect checkbox toggle change in RadGridView?


I have winform application I want to populate a radgrid view on basis of another radgridview. I want to do this by checking a checkbox column, If the checkbox is checked I want to add an item to other radgridview and if it is unchecked I want to remove that item.

I am trying to achieve is that when the checked state of a CheckBox in one CellValueChanged event.


Solution

  • Use RadGridView_ValueChanged event. In this event if you have just clicked on checkbox column than if checkbox is checked its values is on otherwise off

    If you are looping throgh the checkbox column then for current row checkbox value would be on or off and for other rows its value will be true / false