Hi
I have an Ultragrid with two bands. the colsizes are synchronised.The columns don't get resized when a text longer than the column's width is entered.
How can I achieve that?
I already tried:DisplayLayout.PerformAutoResizeColumns(true, PerformAutoSizeType.AllRowsInBand, false);
which led to very "interesting" behaviour. Meaning, the grid gets resized, but I couldn't figure out how.Sometimes the column got resized based on cell content sometimes based on header content.
Any ideas how I can resizes my columns? (would be nice, if I could define that per column)
P.S.I'm using v2010.1
Thanks
has anybody an idea? :)
Hi,
You could try the following:
//allow columns in different bands to be resized independantly
ultraGrid1.DisplayLayout.Override.AllowColSizing = Infragistics.Win.UltraWinGrid.
.Free;
//perform resizing
ultraGrid1.DisplayLayout.PerformAutoResizeColumns(
);
Let me know if this is helpful for you.
Regards,
- Stefaniya