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
 
Back
Top