I'm curious as to why this matters. With a DataTable, chances
are that there's a better way to get what you need than by looping
through the whole table.
-----Original Message-----
From: [email protected] On Behalf Of Mat�as Ni�o
ListMail
Which is FASTEST given 'dt' as a datatable to walk
dim i as int16
for i = 0 to dt.rows.count -1
response.write(dt.rows(i)("column1"))
response.write(dt.rows(i)("column2"))
response.write(dt.rows(i)("column3"))
next
-OR-
dim dr as datarow
for each dr in dt
response.write(dr("column1"))
response.write(dr("column2"))
response.write(dr("column3"))
next
-OR-
Dim dv as dataview = dt.defaultview
for i = 0 to dv.count
response.write(dv(i)("column1"))
response.write(dv(i)("column2"))
response.write(dv(i)("column3"))
next
Taking all possible things into account, which is always best to use?
Thanks in advance for anyone who cares to bite...
Mat�as
Manassas, VA
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/