日期:2014-05-19  浏览次数:20646 次

怎么把CommandField弄到gridview里?
怎么把CommandField弄到gridview里?

------解决方案--------------------
<asp:GridView ID= "GridView1 " runat= "server " Width= "90% " AutoGenerateColumns= "False " BorderColor= "#93c3f9 " AllowPaging= "True " BackColor= "White " BorderStyle= "none "PageSize= "20 " CellPadding= "3 ">
<Columns>
   <asp:CommandField HeaderText= "测试 " />
    <asp:CommandField HeaderText= "测试 " />
    <asp:CommandField HeaderText= "测试 " />
</Columns>
<PagerSettings Visible= "False " />
<AlternatingRowStyle BackColor= "whitesmoke " />
</asp:GridView>