Hi I am trying to display two gridviews in a row using datalist. This is how my code looks
<asp:DataList ID="DataList1" runat="server" RepeatDirection="Horizontal" DataKeyField= "GroupID" RepeatColumns="2" OnItemDataBound="DataList1_ItemDataBound">
<ItemTemplate>
<asp:Label ID="lblPanel" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "DisplayName") %>'></asp:Label>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridView1_RowDataBound" GridLines="Horizontal">
</asp:GridView>
</ItemTemplate>
</asp:DataList>
View source looks like this
<table>
<tr><td> first gridview</td>
<td> second gridview</td>
</tr>
<tr><td>first gridview</td>
<td>second gridview</td></tr>
</table>
But I am trying to get somethis like this
<table><tr><td>first gridview secondGrid view</td></tr>
<tr><td>first gridview secondgridview</td></tr><table>
How can i do this. What controls I need to use? Can someone shed some light?
Thank you
Vishal