日期:2014-05-18 浏览次数:20756 次
方法一: private void gridView1_DoubleClick(object sender, EventArgs e) { MessageBox.Show(gridView1.GetFocusedRowCellValue(gridView1.FocusedColumn).ToString()); } 方法二: private void gridView1_DoubleClick(object sender, EventArgs e) { int selectedRowIndex = gridView1.GetSelectedRows()[0]; MessageBox.Show(gridView1.GetRowCellValue(selectedRowIndex, "BeiJin").ToString()); }