datatable update query

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,
Is it possible to update a selected row of a datatable ?
I do not want to update the whole table just one maybe two at a time.
Thank You.
 
Hello

So, what is the problem ? You don't know how to make it in .NET (C#) or you
are not familiar with SQL ?

UPDATE tbMyTable SET fname='....', sname='...' WHERE id=9
will update only records with id equal to 9.
 
Hi,

just explain further, it's not clear what you want.
You have access to each row using DataTable.Rows[0]["Column1"]

cheers,
 
Back
Top