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
900
Clear all selected rows on any level
posted

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

Parents
No Data
Reply
  • 7499
    posted

    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.

Children