none
Dataset Items RRS feed

  • Question

  •  

    Hi, in VB.net i have in the passed used the following syntax to access each column in a row of a dataset one at a time

     

    Dataset.Tables("TableName").Rows(0).Items(itemsName or number).toString

     

    can any one tell me how i can replicate this in cs as there is no Items property in cs ?

     

     

     

    Wednesday, November 21, 2007 7:29 PM

Answers

  • It should be

     

    Dataset.Tables["TableName"].Rows[0][itemsName or number].ToString()

    Wednesday, November 21, 2007 9:56 PM
    Moderator

All replies

  • It should be

     

    Dataset.Tables["TableName"].Rows[0][itemsName or number].ToString()

    Wednesday, November 21, 2007 9:56 PM
    Moderator
  •  

    In C#

    Dataset.Tables["TableName" or number].Rows[0][ColumnName or Number].ToString()

     

    InVB

    Dataset.Tables("TableName" or number).Rows(0)(ColumnName or Number).ToString()

    Friday, November 23, 2007 6:26 AM