469,936 Members | 2,444 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,936 developers. It's quick & easy.

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

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
Nov 15 '05 #1
2 1662
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
"nss" <ms@m.com> wrote in message
news:ub*************@tk2msftngp13.phx.gbl...
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

Nov 15 '05 #2
nss... this may help:

http://www.geocities.com/jeff_louie/net_insert.htm

Regards,
Jeff
But i wanna update and insert new record in the database via datagrid

how it done<
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

16 posts views Thread by Philip Boonzaaier | last post: by
25 posts views Thread by Neo Geshel | last post: by
4 posts views Thread by Jonathan Upright | last post: by
4 posts views Thread by Reney | last post: by
1 post views Thread by mursyidatun ismail | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.