int selectRow = gridView1.GetSelectedRows()[0]; string id = this.gridView1.GetRowCellValue(selectRow, "id").ToString();