Hai ,
I have a gridview containing datalist in it.In the datalist i placed 2 labels.
My problem is that the content of the datalist not placed within a gridview row cell.
The design and css used is:
<ItemTemplate>
<td>
<asp:DataList ID="DlistItem" runat="server"
RepeatDirection="Horizontal">
<ItemTemplate>
<div class="datalisthead">
<div style="padding-left: 20px; padding-top: 1px;">
<asp:Label ID="LblStaff" runat="server" Text='<%#Bind("Class") %>'></asp:Label>
<br />
<asp:Label ID="LblSubject" runat="server" Text='<%#Bind("Subject_Name") %>'></asp:Label>
</div>
</div>
</ItemTemplate>
</asp:DataList>
</td>
</ItemTemplate>
.datalisthead
{
width:150px;
height:auto;
border-right:1px;
border-right-color:Black;
border-right-style:solid;
}
Thanks in advance,
Sreevidya