GridView 行绑定时获取ID
GridView gdw = (GridView)sender;
if (e.Row.RowIndex != -1)
{
int id = (gdw.PageSize * gdw.PageIndex) + e.Row.RowIndex + 1;//(页面索引)*(页面大小)+本页的行索引+1(从0开始编号,所以加1)
string bsh = GridView1.DataKeys[e.Row.RowIndex].Values["BSH"].ToString();
Bluze