views:

3

answers:

0

I have a composite control that contains a gridview.

The datasource for this gridview is passed in during the composite controls' instantiation. I am currently saving this datasource to a cache twice. Once for the "currentData" and once for the "OriginalData".

The composite control allows for the editing of the rows inside the gridview and these changes are saved to the "currentData" variable. It also allows the user to click a "Reset" button to reassign the gridview's datasource back to "OriginalData".

Someone mentioned that this might not be the best way to handle the ability to "reset" the data back to an original datasource.

I was wondering what other methods others have used and what is faulty with the method I described above.

Thanks so much!