Hi Adriana,
Thanks for the update.
Query: Yes, it is working but the same event is being triggered when I select another row or other rows. Is there a way to know that the header checkbox(select all deselect all) is the one that is being checked?
We have validated your query and you want to know that whether the header checkbox is clicked or not while selecting all the rows using CheckAll(HeaderCheckbox). You can check this requirement by using IsHeaderCheckBoxClicked property in RowSelected and RowDeselected event of the Grid.
While selecting all the rows using header checkbox, then this property(IsHeaderCheckBoxClicked) value is true. From this property, you can differentiate whether the header checkbox click or not. Find the below screenshot for your reference.
[When select all rows using Header Checkbox]
[When selecting a single row]
Please let us know if you have any concerns.
Regards,
Rahul