I am working with a windows application.
I load a dataset with dataadapter with fill method.(objDataAdaptere.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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With