Hi,
I came across the following issue.
Int UltraGrid I have some summary rows. There are two of them. Both of them in one column, placed at the top of grid bellow each other.
When I double click the column to perform resizing or resize the column calling PerformAutoResize the column width is not calculated correctly.
I am attaching small sample application. There are summary rows placed at the bottom and at the top.
Case 1: when double clicking column to perform autoresize, Autoresizing does not include summary rows
Case 2: Calling PerformAutoResize resizes column 2 correctly. Column 1 calculates width of first summary row, but no the second 1
Case 3: In designer try to switch summary rows. Switch shortCol1 and longCol1 summaries. Then proceed to case 2. Everything works fine.
Is this behavior a bug or is there a way to make resizing columns properly?
Hello Peter,
Base on this forum discussion I have created a support ticket with ID CAS-56198-3Z185Q. So I will update you via the case as soon as I have information for you .
Thank you for using Infragistics Components.
If you set ColumnAutoSize mode to AllRowsInBand on the UltraGridOverride the first issue will get resolved.
i.e.
private void ultraGrid1_InitializeLayout(object sender, InitializeLayoutEventArgs e) { UltraGridLayout layout = e.Layout; UltraGridOverride ov = layout.Override; UltraGridBand band = layout.Bands[0]; ov.ColumnAutoSizeMode = ColumnAutoSizeMode.AllRowsInBand; }
private void ultraGrid1_InitializeLayout(object sender, InitializeLayoutEventArgs e)
{
UltraGridLayout layout = e.Layout;
UltraGridOverride ov = layout.Override;
UltraGridBand band = layout.Bands[0];
ov.ColumnAutoSizeMode = ColumnAutoSizeMode.AllRowsInBand;
}
For The issue specified in step 2 and 3, I am forwarding a request to Developer Support to create a bug report.
Thanks
Vaibhav