Hi,
I have a nested gridview inside a master gridview. When I click on + nested gridview shows ans it expected. but if I sroll down the div master gridview scrolls down but nested/detail gridview stays and doesn't move at all !!!
What should I do about it? Below is code for master and nested gridviews.
Thanks a lot
/Pepe
- <div style=" clear:both; height:450px; width:1000px; float:left; text-align: center; overflow-y: scroll; scrollbar-face-color:#EAB697;">
- <asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
- <%
-- Master grid Start --%>
<xGrid:xGrid ID="xGridMaster" runat="server" AutoGenerateColumns="False"
AscImage="" ContextMenuID="" DataSourceID="LinqDataSource1" DescImage="" AllowPaging="true"
MouseOverColor="SkyBlue" onrowdatabound="xGridMaster_RowDataBound" GridLines=None
DataKeyNames="CustomerID" BackColor="#D4794F" Font-Size="Small"
Width="1000px" PageSize="20">
<RowStyle BackColor="#E19971" />
<AlternatingRowStyle BackColor="#E7AD8A" />
<HeaderStyle BackColor="#D4794F" ForeColor="White"/>
<Columns>
...
....
....
<asp:TemplateField>
<ItemTemplate>
<tr>
<td colspan="100%">
<div id="div<%# Eval("CustomerID") %>" style="display:none;position:relative;left:10px;overflow-y:auto; WIDTH:99%" >
<asp:GridView ID="DetailGridView" runat="server" AutoGenerateColumns="True" Font-Size=Small BackColor="#D47941" AllowSorting="True">
<RowStyle BackColor="#E19971" />
<AlternatingRowStyle BackColor="#E7AD8A" />
<HeaderStyle BackColor="#D4794F" ForeColor="White"/>
</asp:GridView>
</div>
</td>
</tr>
</ItemTemplate>
</asp:TemplateField>
Newbie@C#.Net