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
4695
ultragrid UI issues
posted

(1) the first picture shows that the last column has been cut off. How to make it fit??

(2) How to auto fill the ultragrid  when there is space as shown in picture 2??

Parents
  • 469350
    Offline posted

    Hi,

    rchiu5hk said:
    (1) the first picture shows that the last column has been cut off. How to make it fit??

    It's hard to tell from just a screen shot, but it looks like you need to increase the width of that column. You can auto-size a column to it's contents using the PerformAutoResize method on the column. Be sure to call the overload that takes an enum and pass in AllRowsInBand.

    rchiu5hk said:
    (2) How to auto fill the ultragrid  when there is space as shown in picture 2??

    If you want the grid columns to fit within the area of the grid so there is no horizontal scrollbar, you can set the AutoFitStyle property. But please note that this is contradictory to your first question. If you fit the columns inside the grid, then you cannot also make sure that the column autosizes to it's contents, since that may not be possible given the width of the grid.

     

Reply Children