I don't think there is such a thing as a current row.  If I remember correctly, the 
dataset and other ADO.Net objects are created so all rows are available.  No need to 
move the cursor like in older ADO.

What you will need is to pass in an index to your function.

-----Original Message-----
From: Curtis Koppang [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 11:09 AM
To: [EMAIL PROTECTED]
Subject: [DOTNET] ADO.NET: Current row for a DataView?


Sorry for the cross-post from DOTNET-CLR, not sure how many folks are over
there yet...

If I am passed in a DataView, is there any way to tell what the current
row is?

Here is what I want to be able to do (semi psuedo code)...

class Foo
{
...
   public string GetName(DataView dv)
   {
      long x = dv.CurrentRow;  // ????

      return dv.Table.Rows[x]["au_fname"];
   }
...
}

Thanks in advance for any help,
curt

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to