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
70
Using the ExpansionIndicator Override - How to remove whitespace
posted

We are trying to use the WinGrid with two bands. The second band will always be shown, so there is no need to show the expansion indicator at the left of the parent row.

In the Override section, the ExpansionIndicator property can be set to Never and this removes the indicator as expected. After populating the grid with data we call Grid.Rows.ExpandAll to expand all the rows. However we are now left with whitespace gap between the edge of the grid and the row selectors where the indicator used to be.

Is there a way to remove this whitespace and realign the grid? We are using Infragistics 2006 volume 1, so it may be possible to do this only in a newer release.

Parents
No Data
Reply
  • 37774
    Verified Answer
    posted

    Try using the Indentation property on each band, i.e.:

    private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
    {
        e.Layout.Bands[0].Indentation = 0;
        e.Layout.Bands[1].Indentation = 10;
    }

    -Matt

Children