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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I get the index of a Row in a Datatable?

Status
Not open for further replies.

qwert231

Programmer
Sep 4, 2001
756
US
I would like to find the index of a row in a datatable. I cannot find a method or property for either a Datatable, DataRow, or DataRowCollection that easily allows me to do this. Any ideas?
 
Can you explain what you're doing?

I'm trying to figure out how you'd need to reference a row in a datatable without first knowing what the index is

D'Arcy
 
I loaded up my datatable (in my dataset. Now as the user selects various settings or options, I do a Find to that table. Great, it gets me the datarow, but I want to do a change the position of the BindingContext to that row.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top