在鼠标点击事件里写:
//全局变量
int row;
int col;
private void gridView1_Click(object sender, EventArgs e)
{
row=e.rows;
col=e.cols;
mewssagebox.show(gridView1.cols[row,col].toString());
}
gridView1.FocusedRowHandle;//焦点行的行号
gridView1.FocusedColumn.Name;//焦点列的列名
gridView1.FocusedColumn.ColumnHandle;//焦点列的列号