GridView界面设置问题.......
想实现这样的效果,但是设置的gridview不行,大家能不能帮我设置下.........
我的代码如下
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BorderWidth="0px"
ShowFooter="true" CellSpacing="0" CellPadding="0" OnPageIndexChanging="GridView1_PageIndexChanging"
Width="100%" AllowPaging="True" AllowSorting="True">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<table width="90%" border="1" cellPadding="0" cellSpacing="0" style="border-bottom-color:#cfcfcf; border-left-color:#cfcfcf;border-right-color:#cfcfcf;">
<tr style="background-color:#dbdbdb;" valign="top">
<td style="width:10%;height:20px">登记人</td>
<td style="width:40%;" align="left"> <%#DataBinder.Eval(Container.DataItem,"Writer")%></td>
<td style="width:10%;">登记日期</td>
<td style="width:40%;" align="left"> <%#DataBinder.Eval(Container.DataItem,"WriteDate")%></td></tr>
<tr><td style="width:10%;height:50px" align="center">日志信息</td>
<td colspan="3" align="left"> <%#DataBinder.Eval(Container.DataItem,"WriteInfo")%></td></tr>
</table>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
我的图片效果是
上面差了个线条~~~~~~~~~~~~~~~