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
thanks for your answer.
Well, with your code the columns/content get resized as expected.But without synchronised bands, it's very confusing.
is there no way to size my content with synchronised bands?
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
has anybody an idea? :)