This is maybe the dirty way but it might be the quickest.
First insert a new record into the DB
Then Databind the Gridview so you have the last entry already made without any values.... that is to say if the fields are not marked as not Null.
(If so then enter a default value on the initial insert.)
Now udpate your gridview to db.
Main Topics
Browse All Topics





by: ChaosianPosted on 2009-09-17 at 08:38:11ID: 25357397
How are you going to guarantee that another user hasn't inserted a record between the time you create that new record and the time you save it?