在datagridview中如何清除以前的记录并使用csharp更新新记录 [英] in datagridview how clear previous record and updated the new records using csharp

查看:83
本文介绍了在datagridview中如何清除以前的记录并使用csharp更新新记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

本周一至周五我在数据网格视图中保存数据库中的所有记录,如下所示。

在数据网格视图中查看以下记录。这条记录我保存在数据库。



日期会议CK Mk RK GK GS NR UNNI MK NR PN



1月1日REO

1月28日TASCO

1月28日PH2

28 1月4日AFF

1月1日TFC

1月2日MFA

1月3日CTF

29 Jan 4 LGTF

1月1日CTF

1月2日MFA

1月30日PH2

1月4日MFA

1月31日ECDIS

31 Jan 2 ERSM

31 Jan 3 ARPA

31 Jan 4 ERSM

01 Feb 1 ARPA

2月1日2月2日ARPA

01 2月3日ECDIS

01 2月4日LGTF

02 2月1日ECDIS

02 2月2 ERSM

02 2月3日ARPA

02年2月2日ERSM



在下周星期一到星期五我保存了数据库中的所有记录。

当我保存以前的记录(上面的记录)我保存了要删除的记录,并将更新的记录保存在数据库中。



我该怎么办。请帮助我。

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.

推荐答案

不要删除旧记录。更新它。这不那么复杂,速度更快。
Do not delete the old record. Update it. This is less complicated and more speed-effective.


这篇关于在datagridview中如何清除以前的记录并使用csharp更新新记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆