保存Datagridview内容的最佳方法是什么? [英] What is the best way to save the Datagridview Content ?

查看:116
本文介绍了保存Datagridview内容的最佳方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

保存Datagridview内容的最佳方法是什么?

感谢您对此的任何回复。

What is the best way to save the Datagridview Content?
Thank you for any response I can get on this.

推荐答案

您有许多不同的选项:XML,文本或Excel。通常会推荐使用xml或excel。 Excel具有优势,用户可以打开文件,并播放数据。 XML是一种易于使用软件的标准。您还可以保存二进制文件,这会占用更少的空间,但很难调试,因为它不是人类可读的。关于excel的一个重要注意事项,那就是你必须安装Excel,并且不能在服务器上使用。有一个名为ExcelWriter的产品可以在没有Excel的服务器上运行。
You have a number of different optiona: XML, text, or Excel. Normally would recommend either xml or excel. Excel has the adbantage in the users can open the file, and play with the data. XML is a standard that is easy to work with with software. You can also save in binary, which takes less space, but hard to debug since it is not human readable. One important note about excel, and that is you have to have Excel installed, and cannot be used on a server. There was a product called ExcelWriter that would work on a server without Excel.






选项是 - XML,Excel ,CSV。

在这些我更喜欢CSV文件。将数据从datagridview传输到CSV文件非常简单。



CSV,逗号分隔值,文件通常用于在公司或非直接连接的应用程序之间传输大量表格数据。使用Microsoft Excel等常用电子表格应用程序可以轻松编辑文件。
Hi,

options are - XML, Excel, CSV.
In these i will prefer CSV files. It is very simple to transfer the data from datagridview to CSV files.

CSV, comma separated values, files are commonly used to transport large amounts of tabular data between either companies or applications that are not directly connected. The files are easily editable using common spreadsheet applications like Microsoft Excel.


这篇关于保存Datagridview内容的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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