Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
for this week Monday to Friday i save all the records in the data base.records as follows in data grid view.
see the below records in data grid view.this record i saved in the database.
 
Date Session CK Mk RK GK GS NR UNNI MK NR PN
 
28 Jan 1 REO
28 Jan 2 TASCO
28 Jan 3 PH2
28 Jan 4 AFF
29 Jan 1 TFC
29 Jan 2 MFA
29 Jan 3 CTF
29 Jan 4 LGTF
30 Jan 1 CTF
30 Jan 2 MFA
30 Jan 3 PH2
30 Jan 4 MFA
31 Jan 1 ECDIS
31 Jan 2 ERSM
31 Jan 3 ARPA
31 Jan 4 ERSM
01 Feb 1 ARPA
01 Feb 2 ARPA
01 Feb 3 ECDIS
01 Feb 4 LGTF
02 Feb 1 ECDIS
02 Feb 2 ERSM
02 Feb 3 ARPA
02 Feb 4 ERSM
 
in the next week monday to friday i save all the records in the database.
when i save the previous record(the above record) i saved that record to be deleted and save the updated record in the data base.
 
how can i do.please help me.
Posted 28-Jan-13 21:46pm

1 solution

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

Solution 1

Do not delete the old record. Update it. This is less complicated and more speed-effective.
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 400
1 Gihan Liyanage 238
2 Sergey Alexandrovich Kryukov 150
3 ChauhanAjay 120
4 syed shanu 110
0 Sergey Alexandrovich Kryukov 9,056
1 OriginalGriff 7,981
2 CPallini 2,613
3 Richard MacCutchan 2,121
4 Abhinav S 1,928


Advertise | Privacy | Mobile
Web04 | 2.8.140827.1 | Last Updated 29 Jan 2013
Copyright © CodeProject, 1999-2014
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