Hello, Jean-Bernard,
If I understand your requirement correctly, you want to toggle only the check boxes belonging to cell elements that are not disabled. This custom behavior has to be achieved programmatically.
Please have in mind that
GridViewCheckBoxColumn offers the
ShouldCheckDataRows property which determines whether the
CheckBox in the header cell will be synced with the data cells. When true, the header check box will check the data cells and vice versa. It seems that for your scenario it would be more suitable to set this property to false and manage programmatically the checked value only for the data cells that you want. In other words, you will need to iterate the RadGridView.Rows collection and update the cells values to the desired rows.
It is important to note that if you have many rows in the grid, it would be good to wrap this code block of iterating the rows and managing the values in a RadGridView.
BeginUpdate/ RadGridView.
EndUpdate block. Thus, you will not refresh the grid which every value change.
I hope this information helps. If you need any further assistance please don't hesitate to contact me.
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik