Click here to Skip to main content
11,429,777 members (71,366 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C#4.0
when i click delete button in one gridview the deleted dat will store in another table & it will display in another gridview .

Posted 8-Dec-12 20:25pm
Edited 8-Dec-12 21:03pm
Krunal Rohit at 9-Dec-12 1:34am
And your problem is ????
Krunal Rohit at 9-Dec-12 1:53am
Is it Date or Data ????
Krunal Rohit at 9-Dec-12 2:06am
Any efforts so far ??
DANISH BHOI at 9-Dec-12 2:15am
sorry it is data..i need source code for it
Krunal Rohit at 9-Dec-12 2:18am
Have you tried something ?
ShailendraPatel at 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 at 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

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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 Smile | :)
DANISH BHOI at 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)

Advertise | Privacy | Mobile
Web03 | 2.8.150428.2 | Last Updated 9 Dec 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100