http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp

解决方案 »

  1.   

    this.dataGrid1.CurrentCell.RowNumber
    this.dataGrid1.CurrentRowIndex
      

  2.   

    很简单
    取值到文本框
    this.txtId.Text = dataGridView[Convert.ToInt32(dataGridView.CurrentCell.RowNumber),0].ToString();
    这样是获得你选中的行的第0列的值,如果你想取任何列,任何行的值可以在把CurrentCell的列号属性+上就可以了,我记不得单词了,呵呵
    但是,这个只需要点一次就OK了,双击你可以自己写事件就OK了