Recently I upgraded from asp.net 9.2 to asp.net 10.3 and since the upgrade the child rows in the UltraWebGrid are not displaying correctly. Before when a hierarchical report was expanded the child rows width was 100% of the page same as the parent row, currently when the report is expanded the grid looks like this.
http://img145.imageshack.us/img145/7562/gridsizeproblem.jpg
I have tried every width setting I can find and nothing fixes the problem. If anyone can be of assistance it would be greatly appreciated.
Even when setting the child bands columns to a set pixel it has no effect, it only affects the parent row.
Hello ekolluri,
In what Internet Browser you test your page?
Did you tried to set the column width in the page load event like this:
public void SetWidth()
{
// parent band
<yourgrid>.Bands[0].Columns.FromKey("M1").Width = Unit.Pixel(60);
<yourgrid>.Bands[0].Columns.FromKey("M2").Width = Unit.Pixel(60);
…
// child band
<yourgrid>uwgAdjust.Bands[1].Columns.FromKey("M1").Width = Unit.Pixel(60);
<yourgrid>uwgAdjust.Bands[1].Columns.FromKey("M2").Width = Unit.Pixel(60);
}
You should than put this method in your page load event and do not do any other column resizing from other parts in your code.
Try this approach in your grid and let me know what the results are.