Click here to Skip to main content
Sign Up to vote bad
good
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 .
 
I NEED CODE FOR IT......
Posted 8 Dec '12 - 19:25
Edited 8 Dec '12 - 20:03

Comments
Krunal Rohit - 9 Dec '12 - 1:34
And your problem is ????
Krunal Rohit - 9 Dec '12 - 1:53
Is it Date or Data ????
Krunal Rohit - 9 Dec '12 - 2:06
Any efforts so far ??
DANISH BHOI - 9 Dec '12 - 2:15
sorry it is data..i need source code for it
Krunal Rohit - 9 Dec '12 - 2:18
Have you tried something ?
ShailendraPatel - 9 Dec '12 - 8:38
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:53
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 Smile | :)
  Permalink  
Comments
DANISH BHOI - 9 Dec '12 - 4:27
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
Your Filters
Interested
Ignored
     
0 Mahesh Bailwal 353
1 Sergey Alexandrovich Kryukov 339
2 Maciej Los 290
3 CPallini 245
4 Rohan Leuva 175
0 Sergey Alexandrovich Kryukov 9,162
1 OriginalGriff 7,194
2 CPallini 3,923
3 Rohan Leuva 3,176
4 Maciej Los 2,633


Advertise | Privacy | Mobile
Web02 | 2.6.130516.1 | Last Updated 9 Dec 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid