第二个 DataGrid1.Items[行号].Cell[列号].Text;

解决方案 »

  1.   

    DWGrid[M-1 , N-1].ToString()
      

  2.   

    dataGrid[int rowIndex, int columnIndex].ToString();
      

  3.   

    我记得我回过这个贴了,可是怎么没有我的呢,再写一次吧,
    DataGrid有一个CurrentRowIndex,用它来得到当前的DataGrid的选中的行,
    一般来说得到DataGrid的值是用它的数据源如下代码:
    DataTable dt=new DataTable()
    dt=GetDataTable();
    DataGrid.DataSource=dt;
    string TextValue=dt.Rows[DataGrid.CurrentRowIndex][0].ToString();
    System.Console.Writeline(TextValue);
    不知道这个能不能帮你解决问题......