获取GridView行的主键值

获取GridView行的主键值
string order_Id=this.GridView1.DataKeys[row.RowIndex] ["orders_Id"].ToString();
标注的是主键的字段

你可能感兴趣的:(获取GridView行的主键值)