What rows have been inserted in gridview?

  • Thread starter Thread starter VMI
  • Start date Start date
V

VMI

How do I know what rows in the gridView have been recently added (and
therefore need to be inserted into the DB) and which rows already came
from the DB (in an initial Load() ) ? I can't do it "on the fly" since
I can add to the gridview and later decide to cancel the process and
not insert anything.
Is there anything I can check in all the rows in the gridview that'll
tell me if the row in new?
I'm using VS2005 v2.0 and it's a web application.

Thanks.
 
Is it a data set that you have bound the grid to? If it is, then you
can check the rowstate and see which ones have a state of Added.

Hope this helps.
 

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