在网格视图中保存数据不会从datagrid视图中清除先前输入的单元格数据 [英] save data in grid view do not clear previously entered cell data from datagrid view

查看:50
本文介绍了在网格视图中保存数据不会从datagrid视图中清除先前输入的单元格数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在我的项目中使用C#,我正在使用一个数据网格视图从数据网格视图中输入数据库中的数据.我在数据网格视图中有一条记录,并且我尝试在输入数据时插入第二行row [1] col [0]并单击row [1] col [1]插入数据,然后row [1] col [0]的值很清楚我如何可以消除此问题,请告诉我.

i am working on c# in my project i am taking one data grid view for entering data in database from data grid view.i have one record in data grid view and i am try to insert second row when i am entering data in row[1] col[0] and click on row[1] col[1] for insert data then value of row[1] col[0] is clear how i can remove this problem please tell me.

推荐答案

没有看到任何代码,很难确定您的问题是什么.但是,我想您已经错过了重要的信息!

完整介绍了如何连接DataGridView和数据库
Without seeing any code, it is very difficult to be sure what your problem is. However, I am guessing that you have missed out the important bits!

There is a full description of how to connect a DataGridView and a database here[^] - it''s the first answer.

A quick Google found it for me: why didn''t you try it?


这篇关于在网格视图中保存数据不会从datagrid视图中清除先前输入的单元格数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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