Click here to Skip to main content
14,739,263 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
when i click delete button in one gridview the deleted dat will store in another table & it will display in another gridview .

I NEED CODE FOR IT......
Posted
Updated 8-Dec-12 21:03pm
v3
Comments
[no name] 9-Dec-12 1:34am
   
And your problem is ????
[no name] 9-Dec-12 1:53am
   
Is it Date or Data ????
[no name] 9-Dec-12 2:06am
   
Any efforts so far ??
DANISH BHOI 9-Dec-12 2:15am
   
sorry it is data..i need source code for it
[no name] 9-Dec-12 2:18am
   
Have you tried something ?
Patel Shailendra 9-Dec-12 8:38am
   
Why should you create new table just add column and give data type as bit when user delete any record then update the value as 0 by default set the value one. Display all record which have value 1.

Note: when user insert record that time set it to 1.
DANISH BHOI 9-Dec-12 8:53am
   
dear sailendra in my project 1st user sends information it store in a table .when admin istrator accept it it display it in aother table.....but when i delete it deleted from 1st table

1 solution

Have You Ever Heard About Triggers?

We Can do the same using Triggers

Use Delete Trigger on table from which ur deleting Data and store Deleted Data to another table and then Bind that Table to gridview2 or what control u want to show your Data :)
   
Comments
DANISH BHOI 9-Dec-12 4:27am
   
i try by trigger but nothing output..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900