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