I know this gets asked a lot, but I am having the problem where with UseStaticHeaders="true" and AllowScrolling="true" the headers don't line up with the detail columns.
The odd thing is the same control, using the same skin and pretty much the same settings works on another page without a problem. The main difference is that the page that works allows sorting, but even setting this on the problem page doesn't fix the issue.
When I look at the col width (in the colgroup) and the clientWidth of each cell, in the header the clientWidths are 8 pixels more than the col width, which makes sense because there is left and padding of 4px in the skin (it's a custom skin).
But in the details cells the clientWidth is actually one less than the col width, however according to the CSS there should be left and right padding of 4px on these cells as well. How can you have negative padding? In IE Developer Toolbar the css settings appear the same for the header and details cells, but the clientWidth is less for the detail cells.
There is no explicit width set on either grid, and all columns have explicit HeaderStyle-Widths set in pixels, not percentages. TableLayout="Fixed". If I shrink some of the cell widths the details columns shrink and there is white space on the right hand side, however the header still fills the available width, even though there are no width='100%' settings on the grid or any of the parent elements. Setting an explicit width for the grid itself changes the width of the grid, but doesn't do anything to make the columns line up.
Both pages have exactly the same .css files included and no inline style that would override anything, I can't find any reason for the difference.
Anyone have any ideas about something else I can check?
The odd thing is the same control, using the same skin and pretty much the same settings works on another page without a problem. The main difference is that the page that works allows sorting, but even setting this on the problem page doesn't fix the issue.
When I look at the col width (in the colgroup) and the clientWidth of each cell, in the header the clientWidths are 8 pixels more than the col width, which makes sense because there is left and padding of 4px in the skin (it's a custom skin).
But in the details cells the clientWidth is actually one less than the col width, however according to the CSS there should be left and right padding of 4px on these cells as well. How can you have negative padding? In IE Developer Toolbar the css settings appear the same for the header and details cells, but the clientWidth is less for the detail cells.
There is no explicit width set on either grid, and all columns have explicit HeaderStyle-Widths set in pixels, not percentages. TableLayout="Fixed". If I shrink some of the cell widths the details columns shrink and there is white space on the right hand side, however the header still fills the available width, even though there are no width='100%' settings on the grid or any of the parent elements. Setting an explicit width for the grid itself changes the width of the grid, but doesn't do anything to make the columns line up.
Both pages have exactly the same .css files included and no inline style that would override anything, I can't find any reason for the difference.
Anyone have any ideas about something else I can check?
