日期:2014-05-17 浏览次数:20394 次
<asp:GridView ID="GridView1" runat="server" Height="375px" Width="894px" AutoGenerateColumns="False"
EnableModelValidation="True" AllowPaging="True" BorderColor="White" PageSize="20"
ShowHeader="False">
<AlternatingRowStyle BorderColor="White" />
<Columns>
<asp:BoundField DataField="id" HeaderText="id" Visible="False" />
<asp:HyperLinkField DataNavigateUrlFormatString="Articals.aspx?id={0}" DataTextField="Name"
HeaderText="标题" DataNavigateUrlFields="name">
<ItemStyle Width="80%" HorizontalAlign="Left" />
</asp:HyperLinkField>
<asp:BoundField DataField="AddDate" HeaderText="时间">
<ItemStyle Width="20%" />
</asp:BoundField>
</Columns>
<EditRowStyle BorderColor="White" />
<PagerTemplate>
<pagertemplate>
<br />