G
Guest
Hi Guys,
Hopefully some one will have come across this issue already. I have a
DataGrid inside a Div where a scroll bar displays once a certain height is
meet
--> <div id="dvSales" style="height: 230px; overflow: auto; width: 100%"
runat="server">
The Data Grid has AllowPaging is set to False and the HeaderStyle tag is set
for the DataGrid so that the header remains fixed when we scroll using the
scroll bar.
--> <HeaderStyle CssClass="DataGridFixedHeader"></HeaderStyle>
Here is the style in the CSS for the fixed header
--> .DataGridFixedHeader
{
background-color: white;
position:relative;
top:expression(this.offsetParent.scrollTop);
}
This works fine for my Data Grid but only when the Grid has no drop downs as
part of it. If there is drop downs as part of the data grid then they do not
become transparent when we use the scroll bar. I read somewhere that this
has to do with the fact that a drop down in HTML is given higher priority
than other HTML controls when rendering. Anybody have any ideas on how to
fix?
Hopefully some one will have come across this issue already. I have a
DataGrid inside a Div where a scroll bar displays once a certain height is
meet
--> <div id="dvSales" style="height: 230px; overflow: auto; width: 100%"
runat="server">
The Data Grid has AllowPaging is set to False and the HeaderStyle tag is set
for the DataGrid so that the header remains fixed when we scroll using the
scroll bar.
--> <HeaderStyle CssClass="DataGridFixedHeader"></HeaderStyle>
Here is the style in the CSS for the fixed header
--> .DataGridFixedHeader
{
background-color: white;
position:relative;
top:expression(this.offsetParent.scrollTop);
}
This works fine for my Data Grid but only when the Grid has no drop downs as
part of it. If there is drop downs as part of the data grid then they do not
become transparent when we use the scroll bar. I read somewhere that this
has to do with the fact that a drop down in HTML is given higher priority
than other HTML controls when rendering. Anybody have any ideas on how to
fix?