将datagridview的值添加到数据集以生成水晶报告 [英] add value from datagridview to dataset to make crystal report
本文介绍了将datagridview的值添加到数据集以生成水晶报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我创建一个新的数据集,点击添加新项目和新数据集和crate表名为itemname,我想将datagridview列1添加到数据表ut没有任何连接到数据库播种我怎么能做到mak水晶报告从th datagridview
i create a new dataset by click on add new item and new dataset and crate table called itemname and i want add the datagridview column 1 to the datatable ut nothing connected to database sow how i can make that to mak crystal report from th datagridview
推荐答案
您需要将DataSet连接到DataGridView。
为此,您需要设置DataGridView.DataSource属性。
通常,您首先创建一个BindingSource并将DataSet连接到DataSource属性,然后将BindingSource连接到DataGridView.DataSource属性。
参见 DataGridView.DataSource Property [ ^ ]
因为你没有这个艺术数据库icle可能会引起关注。
演练:将XML数据读入数据集 [ ^ ]
You need to connect the DataSet to the DataGridView.
To do that you set the DataGridView.DataSource property.
Normally you first create a BindingSource and connect the DataSet to the DataSource property and then connect the BindingSource to the DataGridView.DataSource property.
See DataGridView.DataSource Property[^]
As you don't have a database this article might be of interest.
Walkthrough: Reading XML Data into a Dataset[^]
这篇关于将datagridview的值添加到数据集以生成水晶报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文