Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
225
How to change the default select/de-select all functionality of checkbox header column?
posted

Hi,

If the row is matching a specific condition (datacell value to some constant value) then these row should be selected otherwise not.

Please let me know, how to achieve this?

Thanks,

Ganesh.

 

Parents
No Data
Reply
  • 6158
    Verified Answer
    Offline posted

    Hello Ganesh,

    Trausti's response is correct. In the AfterHeaderCheckStateChanged event handler, you will want to loop through the RowsCollection provided by the EventArgs, and select any that match the cell value you are looking for.

    You might want to make sure the HeaderCheckBoxSynchronization is set to None to prevent the cell values from changing when the checkbox is clicked.

    Let me know if you need further assistance.

    Chris

Children