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
450
Horizontal ScrollRegion Spans Very Far Past Last Visible Column
posted

Hi,

I have a hierarchical grid that contains only 2 small visible columns.  When my form loads, I can see both columns of data perfectly fine, but for some reason I have a horizontal scrollbar at the bottom of my grid that scrolls very far to the right of my columns and just shows a bunch of white space.

I can't figure out why this scrollbar is appearing.  I want it to only appear if I can't see the contents of my last column in the grid.  I have tried playing around with many different scrollbar properties with no luck so far.

 

Thanks,

~Corey

Parents
  • 469350
    Offline posted

    Hi Corey,

    If the horizontal scrollbar is much larger than it seems to need, then there must be a reason why it thinks the scroll area is so large. The obvious reason for this is that your grid has a child band that is much wider than the parent band.

    What kind of data source are you using for the grid? My guess is that you are probably using a DataSet or a table in a DataSet that has a child relationship defined.

    If that's the case, then you probably just need to set the ViewStyleBand on the grid to SingleBand. If that doesn't help, try setting MaxBandDepth to 1.

Reply Children