Hi,
I tried using the GridView.Behaviors.Selection.SelectedRows.Clear() method but that looks like it only works on the parent level. When I group the rows, the selected row becomes a child row. Is there a way to clear out all selected row, no matter what level they are on?
Thank you,
Trent
Hello Tnguyen,
There is not direct method to clear child rows. I have attached the code which I am using to clear child row selection.
Please let me know if you have any further questions regarding this matter.
This did not work. Isn't there a simple method where I can just clear any selected rows?
Thanks,
Hello Trent,
You can clear the selected rows for child grid like below:
foreach (ContainerGridRecord row in this.WebHierarchicalDataGrid1.GridView.Rows)
{
row.RowIslands[0].Behaviors.Selection.SelectedRows.Clear();
}
Please let me know if I can provide any further assistance regarding this matter.