Results 1 to 2 of 2

Thread: ADO.NET Assigning Dataset values to Class Properties

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2003
    Location
    Australia
    Posts
    14

    Question ADO.NET Assigning Dataset values to Class Properties

    Hi,

    Anyone knows and can tell me how to assign value from a DataSet to a Class Property?
    Can anyone give me a code sample ?

    Ex:

    Dataset
    Employee No, Last Name, First Name


    Class Property
    EmpNo, LastName, FirstName

    Thanks in Advance!

  2. #2
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    VB Code:
    1. myClass.EmpNo = myDataSet.Tables("MyTable").Rows(0)("EmpNo")

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width