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
440
Problem with Synchronized column width in ultrawingrid with more than two bands.
posted

Hi all,

I have a grid with three bands and/or more. It's a hierarchial grid. When I put the below line in the load event or set the same using display layout /override property, the first column size increases to a very great extent.

this.IOPointsGrid.DisplayLayout.Override.AllowColSizing = AllowColSizing.Synchronized;

 I have attached the corresponding images with and without sync. Any help would be really very much appreciated.

 

Parents
  • 469350
    Verified Answer
    Offline posted

    If you take a look at the screen shot, you can see that the first column has to account for the indentation of each band. In other words, the first column in the root-level band has to line up it's right edge with the first column in the lowest-level band, and each band adds a little more indentation, so if you have a deep band structure, the width can add up.

    If your data source is recursive, then you might be able to alleviate this problem a bit by setting MaxBandDepth to a more reasonable number than the default, which is 100. I recommend a setting between 5 and 8 for best performance and since most human users will be lost long before thet get 8 levels deep, anyway.  :)

    Another option is to adjust the Indentation property on the band. Less indentation means less extra width for the first column. 

Reply Children
No Data