Reading data from a dataset

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sweetiecakes

    Reading data from a dataset

    Simple Googling only results filling controls with information -- not
    this. The scenario is, that I have a whole table in my dataset. I know
    the ID (autoincrementi ng integer field) of the row to grab data from in
    the dataset. How do I get all the data of that row in the dataset?
  • =?Utf-8?B?Q2lhcmFuIE8nJ0Rvbm5lbGw=?=

    #2
    RE: Reading data from a dataset

    dataSet.Tables[0].Select("ID = " + ID.ToString())[0].ItemArray;

    will give you an array of the values in the row assuming the dataset is
    called dataSet, its the first table, and the id number is in a variable
    called ID.



    --
    Ciaran O''Donnell
    try{ Life(); } catch (TooDifficultException) { throw Toys(); }



    "sweetiecak es" wrote:
    Simple Googling only results filling controls with information -- not
    this. The scenario is, that I have a whole table in my dataset. I know
    the ID (autoincrementi ng integer field) of the row to grab data from in
    the dataset. How do I get all the data of that row in the dataset?
    >

    Comment

    Working...