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
510
Expand rows based on conditions.
posted

Dear All,

I would like to expand child rows based on a column condition in the parent row after the refresh on the UltraGrid.

For example only those rows where the column "comfired" = false need to be expanded.

Kind regards,

Peter. 

Parents
No Data
Reply
  • 469350
    Offline posted


                foreach (UltraGridRow row in this.ultraGrid1.Rows)
                {
                    if ((bool)row.Cells["Boolean 1"].Value == false)
                        row.Expanded = true;
                    else
                        row.Expanded = false;
                }

Children