【Vegas原创】巧用GridView ButtonField列
<asp:ButtonField Text="成立" CommandName="assReg"/>
protected void grdSignedAss_RowCommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "assReg")
{
int intRow = int.Parse(e.CommandArgument.ToString()); //获取当前所在行
string strUniqueID = grdSignedAss.DataKeys[intRow].Value.ToString();
}
}
{
if (e.CommandName == "assReg")
{
int intRow = int.Parse(e.CommandArgument.ToString()); //获取当前所在行
string strUniqueID = grdSignedAss.DataKeys[intRow].Value.ToString();
}
}
喜欢请赞赏一下啦^_^