access to DataSet information

  • Thread starter Thread starter Random
  • Start date Start date
R

Random

I know this answer is going to be simple, but I can't find an easy answer
because my search terms are so broad, but how would one get a value from a
named column in a DataSet?

I'm thinking along the lines of the ADO Recordset, where you can just
iterate through the records and reference the fields by name for their
value. I know it doesn't make sense as to the why, but I'm retreiving just
one row in my DataSet, and only need the value for one field.
 
DataSetName.Tables[TableIndex].Rows[RowIndex][ColumnIndex]

Where any of the index fields can be replaced by string names other than
row.

HTH,

Bill
 
Perfect. Thanks.

W.G. Ryan MVP said:
DataSetName.Tables[TableIndex].Rows[RowIndex][ColumnIndex]

Where any of the index fields can be replaced by string names other than
row.

HTH,

Bill
Random said:
I know this answer is going to be simple, but I can't find an easy answer
because my search terms are so broad, but how would one get a value from a
named column in a DataSet?

I'm thinking along the lines of the ADO Recordset, where you can just
iterate through the records and reference the fields by name for their
value. I know it doesn't make sense as to the why, but I'm retreiving
just one row in my DataSet, and only need the value for one field.
 
Back
Top