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 BejaouiPosted Jan 31, 2009, 4:27 AM
int rowIndex=oDatatable.Rows.IndexOf(row)
CGPosted Jan 30, 2009, 10:38 AM
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 BejaouiPosted Jan 30, 2009, 10:15 AM