1.aspx
<asp:GridView ID="gvTest" CssClass="GridViewStyle" runat="server" AutoGenerateColumns="False"
OnRowCommand="gvTest_RowCommand">
<RowStyle CssClass="GridViewRowStyle" />
<Columns>
<asp:BoundField DataField="ID" HeaderText="编号" />
<asp:BoundField DataField="Name" HeaderText="姓名" />
<asp:BoundField DataField="Sex" HeaderText="性别" />
<asp:BoundField DataField="Age" HeaderText="年龄" />
</Columns>
</asp:GridView>
1.aspx.cs
//定义一个DataTable实例
DataTable dt = new DataTable();
//ID
int i = 10001;
//页面加载
protected