数据视图网格 [英] Dataviewgrid

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

问题描述

我有一个datagridview,它由用户从关系数据库(访问)中过滤掉.我需要将datagridview放到Microsft报告查看器或Crystal Report Viwer等报告中.我需要能够格式化报告,以便将DGV结果复制到excel确实可以提供该选项.是否可以将DGC用作报表的数据源,或者我需要先做其他事情吗?

I have a datagridview which is filtered by the user from a relational database (access). I need to out put the datagridview to a report such as Microsft report viewer or crystal report viwer. I need to be able to format the report so that copying the DGV result to excel does give me that option. Is it possible to use the DGC as a datasource for the report or do i need to do something else first

推荐答案

如果您使用的是Microsoft报表查看器,那么它很好选择与Matrix控件一起使用以渲染嵌套的gridview.您还可以使用报表生成器工具中的向导进行此操作.
if you are using microsoft report viewer then its a good choice to work with the Matrix control to render nested gridviews. you can also do this using a wizard which is part of the report builder tool.


您可以分配数据集,如下所示-http://social.msdn.microsoft.com/Forums/zh-CN/vscrystalreports/thread/b164c77b- 67a0-4b02-82f6-ffa73428ffbb/.
You could assign a dataset as shown here - http://social.msdn.microsoft.com/Forums/en-US/vscrystalreports/thread/b164c77b-67a0-4b02-82f6-ffa73428ffbb/.


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

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