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.
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.
Mike: I actually do want the row connectors to be visible, but I only want to see them when they connect a parent band to a child band.
The issue I am having is because I set the indentation of band[0] to 0, pushing it all the way to the left where they expansion indicator would have been (since the ExpansionIndicator is turned off, I end up having 5-10px of wasted real estate; the Indentation=0 fixes that).
The following PNG file shows the section of row connectors that I dont want to be visible (I have outlined the areas of interest in red):
Thanks for the help.