I have a condition for a datagrid (Please view the list.JPG from the attachment)

in here you can see a set of data being load from the database.

User can perform add, remove , dispose function

Here is my condition:

Since user allow to add, it also allow to remove (view the list2.JPG from the attachment)

But sometimes user may accidently remove the data they need.

So what they need to do is just click close button , and back to this page again

The actual data load from database remain same.

My question is how to load that set of data from database to a temporary dataset

this dataset will perform the operation just now (add or remove)

When all done, system will update back this temporary dataset to the database.

It that possible to do in web application?

You can use sessions to maintain two dataset

1) dataset1 can hold the original result loaded from the DB
2) dataset2 should hold the manupulated current dataset which has added/updated/deleted row(s).

Regards
Mohammed Yousuf uddin
software Developer

You can use sessions to maintain two dataset

1) dataset1 can hold the original result loaded from the DB
2) dataset2 should hold the manupulated current dataset which has added/updated/deleted row(s).

Regards
Mohammed Yousuf uddin
software Developer

thanks a lot. this it what i doing now

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.