protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
//绑定表格
BindGridView();
//构造
CommandEventArgs cm=new CommandEventArgs("choose",(gvChoosedMemberList.Rows[0].FindControl("lbtnMemberChoose") as LinkButton).CommandArgument);
GridViewCommandEventArgs arg=new GridViewCommandEventArgs(gvChoosedMemberList.Rows[0],cm);
gvChoosedMemberList_RowCommand(null, arg);
}
}
转载于:https://www.cnblogs.com/hezechang/archive/2008/12/23/1360806.html