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
490
Customizing RowConnectors in a Multiband Grid
posted

I have a double banded grid that I always want to be completely expanded; to accomplish this, I have been using the ExpandAll() method on the grid whenever RowInitialization happens. Since all child rows of the grid are always expanded, I wanted to get rid of the real estate that was being taken by the [+] expansion button. I set the indentation of the parent row to 0 which caused the row selectors to hide the [+] button, but a side effect of this was the RowConnectors are visible in the row selectors (e.g. there is a dotted vertical line that goes through each of my parent band's row selectors).

 

There has to be another way to do this. I ultimately want a hiearchical grid that is always expanded, the [+] button is never visible, the parent band is all the way to the left, and the row connectors are visible between the parent and child row selectors.

 

OT: Whats the correct name for the [+] expansion button?

 

Thanks.

Parents
  • 469350
    Offline posted

    Yuo can turn off the RowConnectors using the RowConnectors property on the grid's DisplayLayout. Set it to None.

    broccliman said:
    OT: Whats the correct name for the [+] expansion button?

    ExpansionIndicators. There is also an ExpansionIndicator property on the Override. 

     

    You will probably also want to handle the BeforeRowCollapsed event and set e.Cancel to true so that a user can't collapse a row by double-clicking. 

     

Reply Children