(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??
Hi,
I'm not sure what you are asking, now. The vertical scrollbar does not cover the column. Or, if it does, then it will result in a horizontal scrollbar.
It looks to me like you need to make the column wider, which I have already explained how to do.
If you are saying that the column is actually wider and is being clipped by the vertical scrollbar, then clearly something is very wrong there. But I don't see how you could tell that from this image, and I have never heard of any problems like that occurring in the grid.
What version of the grid are you using?
As to the first picture shows that the last column has been cut off, it seems that there is a vertical scroll bar which make it not fit. When there is no vertical scroll bar, it is fit.
What do you think??
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.