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
160
Select group level checkboxes
posted

Hi

     I have a multi level grouping (let's say two groups) and one of the column is Checkbox column.

My functionality is when I select the checkBox in Header column I should be able to loop through all the group row level checkboxes and select all the check boxes in group level rows.

and when I select the checkBox in group1 (let's main group) I should be able to loop through all the sub-group level checkboxes and select all the check boxes in sub-group level rows.

I am able to select the corresponding checkBoxes in the actual data rows on the selection of Header checkbox/main group checkbox/Sub-group checkbox but could not get hold of group level checkboxes.

Can some please help on this?

Thanks

Sayap

 

Parents
  • 40030
    Offline posted

    Hi Sayap, 

    To access the row data of a particular GroupByRow, you can use:

    RowCollection rows = ((GroupByRow)this.grid1.Rows[0]).Rows;

                foreach (Row row in rows)

                {

     

                }

    Hope this helps, 

    -SteveZ

Reply Children