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
335
uncheck checkboxes automatically in hierarchical grid
posted

Hi everyone,

I have a hierarchical grid realized through DataRelations. Every Row has a checkbox to check/uncheck it. Is it possible to uncheck one row and automatically uncheck all underlying rows who are related to this?

I'm not sure if this is possible and if, i wasn't able to figure out how to do it. Can anyone help me with this?

Thanks,

Renelope

Parents
  • 17259
    Verified Answer
    Offline posted

    Use the CellChange event. Use the Text property to see what is the value. The Value property is not changed yet. (You can use the AfterCellUpdate event and the Value property but it will fire after the cell lose focus)

    In the event handler:

    foreach (UltraGridRow row in e.Cell.Row.ChildBands[0].Rows)

    {

    row.Cells[columnKey].Value = yourValue;

    }

Reply Children
No Data