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
385
How to keep columns in multiple band align.
posted

Hi All,

I'm using multi-band on a grid.  There is about 50 bands in the grid. Actually data source is a self-linked dataTable, so every band has the same columns. 

I like the default behavior to keep all columns align, however I don't want the first column has a great width.

so I set AllowColSizing = AllowColSizing.Free. But the columns between bands are getting mis-aligned. I have tried to set Band.Indentation = 0, then the ExpansionIndicator got hidden. 

Is there a method to move the ExpansionIndicator to the rowSelector's place?, I don't care about rowSelector, Or there are any other method for this.

Regards.

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi,

    In order for the columns to line up and the first column not to get larger, the bands would have to not be indented at all. That doesn't really have anything to do with the RowSelectors or the ExpansionIndicators.

    What you can do is loop through the bands and set the Indentation property on each band to 0. I'd recommend doing this in the InitializeLayout event of the grid.

    This won't help with what you are asking, but just so you know, you can use grid.DisplayLayout.Override.RowSelectors property to turn off the RowSelectors. And you can use grid.DisplayLayout.Override.ExpansionIndicator to turn off ExpansionIndicators.

Children