I want to allow a user to update some fields in a Access database from a windows form.
The user enters the number that he is looking for in a textBox and it pulls other information relating to that number, into some other textBoxes. But when I try to update the information the entry goes into the second row of the database,
this is the suspect line of code:
System.Data.
DataRow dRow2 = ds1.Tables["DbTable"].Rows[inc];I know it is because "inc" has the number 2 stored...How can I get the row number of the number I searched for??? Or is there another way to do this?

Bechir BejaouiRank #144 · 15.9K reputationPosted Jan 30, 2009, 5:15 AM EST
CG26 reputationPosted Jan 30, 2009, 5:38 AM EST
Sorry not sure if I under stand?
If I had a range of numbers in a database like this
15549843
65578
81664
00134578
How could I find what row number 65578 is on?
Bechir BejaouiRank #144 · 15.9K reputationPosted Jan 30, 2009, 11:27 PM EST
int rowIndex=oDatatable.Rows.IndexOf(row)