Click here to Skip to main content
12,884,771 members (27,746 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# 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 19:25pm
Updated 8-Dec-12 20:03pm
Krunal Rohit 9-Dec-12 1:34am
And your problem is ????
Krunal Rohit 9-Dec-12 1:53am
Is it Date or Data ????
Krunal Rohit 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
Krunal Rohit 9-Dec-12 2:18am
Have you tried something ?
ShailendraPatel 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

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 :)
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)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170424.1 | Last Updated 9 Dec 2012
Copyright © CodeProject, 1999-2017
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