Current row ID in datatable

M

MattB

This should be easy for the more experienced. I'm looping through a
datatable and I need to know the current row number. I figured I'd be able
to find it fishing with Intellisense, but I'm coming up with nothing.

The loop is like this:

dim dr as datarow
For each dr in MyDatatable
....

Next

I'd like to be able to find out what row I'm on inside that loop. I thought
it would be something like dr.CurrentRowIndex but that (or many variations
of it) aren't working. How do I get that?

TIA!

Matt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,999
Messages
2,570,243
Members
46,836
Latest member
login dogas

Latest Threads

Top