Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (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 by eramgarden

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...