Having some trouble with the table layout here. In the screenshot, you'll notice a grid view within another gridview. There are currently 3 grid views - the main one and one in each table. I'm looking to move the description to the Price 2 column and get rid of the third grid view. Any ideas on how to make the second table span into the next column?
Thank you!
http://img43.imageshack.us/img43/9384/tabelf.jpg
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
AutoGenerateDeleteButton="False" AutoGenerateEditButton="False"
onrowcancelingedit="GridView1_RowCancelingEdit"
onrowdeleting="GridView1_RowDeleting"
onrowediting="GridView1_RowEditing"
onrowupdating="GridView1_RowUpdating"
OnRowCommand="GridView1_RowCommand" style='table-layout: inherit'>
<Columns>
<asp:TemplateField HeaderText="Site ID">
<ItemTemplate>
<asp:Label ID="lblID" runat="server" Text='<%#Eval("ID") %>'></asp:Label>
<%--<asp:Label ID="Label1" runat="server" Text='<%# Container.DataItemIndex%>'></asp:Label>--%>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Service Name">
<ItemTemplate>
<asp:Label ID="lbl" runat="server" Text='<%#Eval("firstName") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="txt" runat="server" Text='<%#Eval("firstName") %>'></asp:TextBox>
</EditItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Price 1">
<ItemTemplate>
<asp:Label ID="lblPriceOne" runat="server" Text='test'></asp:Label>
<asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False"
AutoGenerateDeleteButton="False" AutoGenerateEditButton="False">
<Columns>
<asp:BoundField DataField="lastName" HeaderText="lastName" SortExpression="lastName">
<ItemStyle Width="20%"/>
</asp:BoundField>
<asp:BoundField DataField="firstName" HeaderText="Discription" SortExpression="firstName">
<ItemStyle Width="20%" />
</asp:BoundField>
</Columns>
</asp:GridView>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Price 2">
<ItemTemplate>
<asp:Label ID="lblPriceTwo" runat="server" Text='test2'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="">
<ItemTemplate>
<asp:Button ID="btnShow" runat="server" Text="Expand" CommandName="Show" CommandArgument='<%# Container.DataItemIndex%>' />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</div>
</form>
</body>
</html>