CG

CG

  • NA
  • 22
  • 0

Row Number?

Jan 30 2009 9:12 AM

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?

 


Answers (3)