谢谢!

解决方案 »

  1.   

    dataGrid1.CurrentCell.RowNumber;就是当前行
    dataGrid1.CurrentCell.ColumnNumber;就是当前列
      

  2.   

    光标选中是IsSelect(i)方法,指针指向的行就是CurrentRowIndex属性,要取某一格就是DataGrid[X,X]
      

  3.   

    然后从绑定的数据源DataTable中提取:       string strlocation = DataTable1.Rows[Convert.ToInt32(DataGrid1.CurrentCell.RowNumber.ToString())]["location"].ToString();

      

  4.   

    晕到,我要的控件Location属性的值啊,大家看清楚一下,好吗?
      

  5.   

    补充以下楼上的
    ((DataView)DataGrid1.DataSource)[DataGrid1.CurrentRowIndex].Row[DataGrid1.CurrentCell.ColumnNumber]