Hi
I have a couple of questions regarding UltraGrid:-
1 How to pin/unpin the columns in a grid
2 How to enable column headings to wrap round so that we could make the columns narrower
Many thanks
Lan
Hi Lan,
You are looking for the PerformAutoResize method on the column or the PerformAutoResizeColumns method on the band. The InitializeLayout event is usually a good place to call these methods, but make sure you call the right overload that specifies all rows in the band.
Manks for the quick reply. It works!
On a similar subject, is it possible to make the column header width auto-sizable so that it will fit the width of the data in that column?
Regards,
ultraGrid1.DisplayLayout.Bands[0].ColHeaderLines = 2;ultraGrid1.DisplayLayout.Override.WrapHeaderText = DefaultableBoolean.True;
Hope this helps
Thanks for the reply to my first question. What I meant for the 2nd point is:
say we have a column header called transation currency and its content only has 3 characters e.g. USD. I would like the column heading to show
transaction
currency
instead of transaction currency. This is for saving horizontal space. Just wondering whether it is can be done with UltraGrid.
Regards
1
ultraGrid1.DisplayLayout.UseFixedHeaders =
true;
ultraGrid1.DisplayLayout.Bands[0].Columns[0].Header.Fixed =
i didnt understand the second point, if you can clarify it