数据网格视图和数据集 [英] datagrid view and dataset

查看:97
本文介绍了数据网格视图和数据集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI
如何 datagridview 传递到数据集 ?????????

然后将数据集传递到crystalrepot


datagrid ............>数据集..............> crystalreport

HI
How to pass datagridview to dataset?????????

Then Pass dataset to crystalrepot


datagrid............>dataset..............>crystalreport

推荐答案

您没有将DataGridView传递给数据集.
您将DataGridView的源分配给DataSet.

阅读使用带有数据集的C#创建Crystal报表 [
You do not pass a DataGridView to a Dataset.
You assign the source of the DataGridView to the DataSet.

Read Creating Crystal Reports using C# with Datasets[^] if you want to set a DataSet as the source for a Crystal Report.


DataGridView是一个可视化数据的类,其中数据集包含仅"数据.

如果您已有数据datagridview,则可能已经为datagridview的datasource属性定义了一个数据集或数据表.如果是这样,那么您可以获取该数据集并将其传递给Crystal.
DataGridView is a class to visualize the data where as dataset contains ''only'' data.

If you already have a data datagridview, you propably have a dataset or datatable defined for the datagridview''s datasource property. If that''s true then you can take that dataset and pass it to crystal.


这篇关于数据网格视图和数据集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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