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
20
Expanding a band programatically
posted

Hi

I want to expand a band programmatically. I have a grid with 3 bands. As default they are collapsed. Depending on some condition i want to show band 2, how do I do that?

Kind regards

Claus Løber

Parents
No Data
Reply
  • 1332
    posted

    Hello,

    You can either use the ExpandAll method or Expanded property of a row to expand its child contents. ExpandAll will expand the child rows and all of its descendants while Expanded = true will expand only the child rows. The syntax is as follows.

    UltraGrid1.Rows[0].Expanded = true;

     

Children
No Data