在网格视图中保存数据不会从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和数据库 ^ ]-这是第一个答案.

快速的Google为我找到了它:您为什么不尝试呢?
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?