1 Reply Latest reply on Sep 2, 2010 3:37 AM by martinjconnolly

    How to maintain Data Grid column sizes in FB4?

    martinjconnolly

      Hi all

      I have just installed FB4 and I'm trying to migrate my first FB3 project. I have a Data Grid with 22 columns. In FB3, the columns stayed the same size (i.e. as specified) regardless of the content returned from my HTTPService. However in FB4 they can move slightly! Which means that some additional text that I have put above the data grid, which should line up with the columns, occasionally doesn't. How can I get the column sizes to stick? Is it a layout option? I had to remove "layout=absolute" in my application declaration, is there an alternative in FB4?

      Thanks

      Martin

        • 1. Re: How to maintain Data Grid column sizes in FB4?
          martinjconnolly Level 1

          In fact I can see what's happening. I had no vertical scroll policy set on the data grid. Whenever enough data was returned to make a scroll bar necessary, the last column on the right is shifted slightly to the left to make room for the scroll bar, and then it stays the same width even if the scroll bar is no longer necessary. When it's needed again the column moves again. I think this is a bug isn't it? If I set scroll policy to "on" then the problem doesn't happen.

          Cheers

          Martin