开发者

Get a cell of dataset

I am working with a windows application.

I load a dataset with dataadapter with fill

method.(objDataAdapt开发者_开发问答ere.fill(objDataSet,"string"))

Now I want to get a cell of this dataset.(for example (row(0),cell(0))) How do I can do this? Thanks.


The value? Assuming you mean "of the first table of the data-set", then:

    object value = dataSet.Tables[0].Rows[0][0];

but more specifically:

    object value = dataSet.Tables[tableIndex].Rows[rowIndex][colIndex];


ds.Tables(0).Rows(0).ItemArray(0)

Where ItemArray Contains values like cell in gridView

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜