如何在datagridview上获得更直接的数据时更新数据源? [英] How to update datasource when more direct data on datagridview?

查看:52
本文介绍了如何在datagridview上获得更直接的数据时更新数据源?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

我遇到了问题,我正在寻找谷歌,但没有看到他的问题,并决定在你的网站上寻求帮助。

具体来说,我的问题如下:

1 - 我有一个datagridview,允许用户自动添加新行,并从新行接收数据(这个问题我已经完成并且运作良好)。

2 - 当我从新行导出到excel时添加到datagridview的数据源中我发现是null(问题出在这里)。

人们问我,是当我们直接在datagidview上添加数据时,数据不会绑定到数据源?有没有办法让我们直接在datagridview上添加数据时,数据会被添加到数据源中?

我们希望得到大家的帮助!

谢谢!

解决方案

嗨EveryBody!

非常感谢你们!

现在我找到了解决问题的方法。

我不使用输出数据来从另一个将直接从datagridview上的数据行使用的数据源中获益。

我想在这里关闭这个主题。


Hi everybody!
I'm having a problem, I was looking on google but did not see his problem and decided on your website to seek help.
Specifically, my problem is as follows:
  1 - I have a datagridview that allows users to automatically add new lines, and receive data from the new line (this issue I have done and works very well).
  2 - when I export to excel conducted from the new line is added to the datasource of the datagridview I found to be null (The problem lies here).
People ask me, is when we add data directly on datagidview, the data will not be binding to the datasource? Is there any way so that when we add data directly on the datagridview, the data will be added to the datasource?
We hope to receive the help from everyone!
Thank you!

解决方案

Hi EveryBody!
Thank you all very much!
Now I have found the solution to my problem.
I do not use the output data to excel from another datasource that will be used directly from the data row on the datagridview.
I would like to close this topic here.


这篇关于如何在datagridview上获得更直接的数据时更新数据源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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