(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,
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.
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??