怎么讀出datagrid的第i行j列的數據﹖

解决方案 »

  1.   

    定位i行
    datagrid1.columns(j).value
      

  2.   

    定位i行:
    DataGrid1.Book = i
    读取j列:
    DataGrid1.Columns(j).Value
      

  3.   

    DataGrid1.Col = 1
        DataGrid1.Row = 2
        cstring = DataGrid1.Text
      

  4.   

    光标所在的地方的数据:
    MsgBox dgMain.Columns(2).Text
      

  5.   

    我是在VB.NET里寫ASP程序﹐在aspx下樓上的語法好象無法通過啊。
    我現在就是把查詢結果放在datagrid里﹐然后要讀出第i行j列的數據﹐不想通過datasource﹐不知怎么實現?