Hi all,
I used WebGrid 8.3 with StationaryMargin = "Header" and set the column's width as Unit.Percentage.
When the scrollbar appear, the Grid's Header was misalignment with the data column. That was the Header's width was not resized when the scrollbar appeard.
Note that if I set the column's width as Unit.Pixel, this issue did not occur. But I need to set the column width as Unit.Percentage in order to make the Grid's columns automaticly fit the width of Web page when resize the browser.
Please help me to resolve this issue.
Thanks,
Nguyen Huu Chu
VNetSoftware LLC
If your grid's data is hierarchical, then this is a known and documented limitation. Below is an excerpt of the Known Issues page as taken from our online help documentation of NetAdvantage for .NET 2008 Volume 3:
Layout Limitation There is a known limitation with WebGrid under the following conditions: The grid contains hierarchical data. The Width of the grid is set using percentages. The Width of the Columns in the grid are set using percentages. The grid is set with stationary margins, fixed headers, or both. Under these circumstances, when resizing columns in child bands, the width of the column headers may change at a different rate than the width of their corresponding columns, causing a visible disconnect between the headers and their columns. This won't occur if the grid's TableLayout is set to Fixed, while neither stationary margins nor fixed headers are enabled.
There is a known limitation with WebGrid under the following conditions:
Under these circumstances, when resizing columns in child bands, the width of the column headers may change at a different rate than the width of their corresponding columns, causing a visible disconnect between the headers and their columns.
This won't occur if the grid's TableLayout is set to Fixed, while neither stationary margins nor fixed headers are enabled.