获取GridView中CheckBox当前行的ID

CheckBox chk = (CheckBox)sender;
GridViewRow dvr = chk.Parent.Parent as GridViewRow;
string auditId = GridView1.DataKeys[dvr.RowIndex].Value.ToString();

 

posted @ 2012-02-07 17:35  xfyn  阅读(180)  评论(0编辑  收藏  举报