Access cell value of datatable

后端 未结 6 2110
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-13 01:27

Can anyone help me how to access for example value of first cell in 4th column?

a b c d
1 2 3 5
g n m l

for example, how to access to value

6条回答
  •  半阙折子戏
    2020-12-13 02:13

    data d is in row 0 and column 3 for value d :

    DataTable table;
    String d = (String)table.Rows[0][3];
    

提交回复
热议问题