Click here to Skip to main content
Sign Up to vote bad
good
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:46


1 solution

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
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 278
1 Mohammed Hameed 268
2 OriginalGriff 236
3 Mayur_Panchal 153
4 Dave Kreskowiak 125
0 Sergey Alexandrovich Kryukov 8,171
1 OriginalGriff 6,236
2 CPallini 3,482
3 Rohan Leuva 2,703
4 Maciej Los 2,234


Advertise | Privacy | Mobile
Web03 | 2.6.130516.1 | Last Updated 29 Jan 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid