eramgarden Posted March 26, 2004 Posted March 26, 2004 (edited) cant have datagrid in a panel?? I have a datagrid, everything is fine and dandy.. Now i want to put in a panel but panel is drawn on one side and the datagrid on the other...I even tried the same style and size.. This is what I have: [b]<asp:panel id="pnlSiteDetail" style="Z-INDEX: 103; LEFT: 234px; POSITION: absolute; TOP: 198px" runat="server" BorderStyle="Solid" Width="784px" Height="368px">[/b] <asp:datagrid id="dgViewDetail" style="Z-INDEX: 101; LEFT: 230px; POSITION: absolute; TOP: 148px" runat="server" AutoGenerateColumns="False" Width="697px" Height="200px" OnUpdateCommand="Site_Update" OnCancelCommand="Site_Cancel" OnEditCommand="Site_Edit" BorderStyle="Solid" BorderColor="Black" BorderWidth="3px"> <AlternatingItemStyle BackColor="White"></AlternatingItemStyle> <Columns> asp:TemplateColumn HeaderText="Site Information-"> <HeaderStyle Font-Size="Large" </HeaderStyle> <ItemTemplate> ...... </ItemTemplate> <EditItemTemplate> ...... </EditItemTemplate> </asp:TemplateColumn> </Columns> </asp:datagrid> [b]</asp:panel>[/b] Edited March 26, 2004 by eramgarden Quote
Moderators Robby Posted March 27, 2004 Moderators Posted March 27, 2004 Remove the Style from the datagrid. Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.