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!

Datatable - datarows - accessing rows/columns

Status
Not open for further replies.

MartinCroft

Programmer
Jun 12, 2003
151
GB
Hi

I have a datatable which has 18 columns and 5 rows, I need to access a particulair row and
column and get the value for that column. I can loop through using

For Each drow In dt.Rows

and see all the columns and the values i could add a counter

i=+1 so i know when I am at a particulair column but I am assumming there must be an easier way
to do this i thought drow.itemarray(1,1) but i though wrong any suggestions
 
datatable.rows(rownumber).item(columnnumber)

Change values where appropriate.

Christiaan Baes
Belgium

I just like this --> [Wiggle] [Wiggle]
 
yep, or the long version:
dataset.tables("tablename").rows(rownumber).item("columnname").tostring
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top