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
430
disable a row with all it's child Bands
posted

hello.

We have a grid with few bands and we want to disable just one row

with all it's child bands.

we found how to disable one row:

grid.Rows[i].Activation=Activation.disabled

but the problem is that just this row became disabled

and all the child band (with their rows) not.

Thank yow

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    There's no way to disable a rows collection, so you would have to loop through all of the child rows. To get the child rows, you would do something like this: 

    grid.Rows[i].ChildBands[0].Rows

    Of course, if there is more than one child band or more than one level of depth, you might have to loop or create a recursive function to walk down the rows.

Children
No Data