//直接通過gridView獲取當前行
dr=this.gridView1.GetDataRow(this.gridView1.FocusedRowHandle);
//通過DataSet獲取數據,需要轉換行標
dr = ds.Tables[0].Rows[this.gridView1.ViewRowHandleToDataSourceIndex(e.FocusedRowHandle)];
//通過數據綁定獲取
gridcontrol1.DataSource = dt;
dr = ds.Tables[0].Rows[dt.Position];