Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting data values from DataTable 1

Status
Not open for further replies.

damann

Technical User
Jul 19, 2000
114
US
Hello all,


I'm having a hard time getting at my data that's in my DataTables. I can bind it to a data grid perfectly fine, but in my codebehind page I would like to assign a value that's in my DataTable to a variable like this:

objProdDataTable.Columns("prodID").DefaultValue

But it doesn't seem to work. Any ideas why this is or what I'm doing wrong...? Please let me know
 
You need to reference the row ...

something along this line
objProdDataTable.rows(0).columns("prodID")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top