how can update and insert new records in the database via datagrid

  • Thread starter Thread starter nss
  • Start date Start date
N

nss

hi,
I created web page ( .aspx) then i imported datagrid on that page with
dataset. Using OleDbDataAdapter i made select qurey when page is launch it
shows row.
But i wanna update and insert new record in the database via datagrid how it
done

regards,

Sam
 
Add some text boxes or other controls that correspond to the grid columns.
Have an AddNew Button for instance that creates a new DataRow object based
on the table that the grid is bound to...and add the row to the table. Then
when the user is done editing...just fire DataAdapter.Update...hth,

Bill
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top