this.gridview1.datakeys[e.rowindex].values[0].tostring() 注意:还要在gridview属性里面设置datakeynames="id"只有设置上面的属性后才能取出当前列数据的id