VMI,
This is really an ASP.NET question (not a C# language question) and should
be directed to the ASP.NET group.
If your code really adds a new Grid row to the underlying datatable, you
should only need to get this out of session state and pass it to a
DataAdapter to update your database.
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
"VMI" wrote:
> When my webpage loads the first time, I fill my datatable with records from
> the DB and display them in my gridview. Once it loads, the user clicks on a
> button and add records to the datatable, which also show up in the gridview.
> When "Finish" is clicked, I'll insert the records into the DB.
> Question: What's the best way to display the datatable (with the records
> from the DB and the records that the user added through the page) into the
> gridview after postback? And when the user's done, how can I know which
> records from the datatable were added by the user?
>
> Thanks