Right now I have an ultragrid set to AutoFitStyle=ExtendLastColumn. However, I have a column called LogText that is really the meat of what people need to see. What I end up with is a really large Last Column and a really small LogText when it loads. I can't autoresize the LogText because it has too much data, but want to display as much of it as possible when the grid loads.
Is there anyway to perform the autofit function on another column other than the last one?
Thanks
Hi,
What you do is set the AutoFitStyle to ResizeAllColumns. Then you set the Width, MinWidth, and MaxWidth to the same value on every column but one, so there's only one sizable column in the grid.
Unfortunately I was right. This does expand the middle column to fit the width, but it doesn't allow me to expand it beyond the size of the grid. I guess what I really want is for the grid to start autosized but allow the users to expand the columns as they choose after the UI loads.
Well, if that's what you want, then you will have to turn off AutoFitStyle. Perhaps what you can do is turn it on and then call Refresh, to force the grid to paint once, then turn it off so the columns are sizeable again.