如何将datagridview中的数据保存到文本文件? [英] How do i save the data in a datagridview to a text file?
本文介绍了如何将datagridview中的数据保存到文本文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是否可以使用savefiledialog将数据网格视图中的内容保存到新的文本文件?我已经在网上搜索了几天但仍然无法得到答案。
Is it possible for me to save the content in a datagridview to a new text file using a savefiledialog?.I have been searching on the web for quite a few days and still unable to get answer.
推荐答案
您可以在datagrid itseld中加载数据时执行此操作,请参阅link [ ^ ]。
希望这对你有所帮助。
问候,
RK
Hi,
You can do it while loading the data in datagrid itseld, refer this link[^].
Hope this helps you a bit.
Regards,
RK
这篇关于如何将datagridview中的数据保存到文本文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文