Crystal Peports和Datagrid视图中 [英] Crystal Peports and in Datagrid view

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

问题描述

大家好,
我是vb.net的新手,我有两个问题没有答案.请帮助我克服这个问题.
1)我能够从数据库(我正在使用的MS访问)中检索数据到数据网格查看器.但是我不知道如何添加列值.我希望Total必须根据我们在添加查询"选项中所做的查询而有所不同.如果您对此有所了解,请让我知道代码是什么以及必须在哪里实现.

2)在Crystal Report中如何对数据进行排序.请说是要查看上个月的数据还是日期范围的数据.我想知道代码以及在应用程序中实现的位置的详细信息.


期待您的富有回应....

在此先感谢
Gokul

Hi all ,
I am new to vb.net .I have a two questions unanswered . Pls help me to overcome this issue .
1) I can able to retrieve the value from database(MS acess i''m using)to Data grid viewer . But I dono how to add the column values . I want that Total must vary depending upon the query we are doing in Add query option . If you have any knowledge of this pls let me know what is the code and where we have to implement .

2) In Crystal Report How to sort the Datas . say if I want to see the datas of last month or for the range of dates . I want to know the code and the details of where to implement in the application .


Expecting your wealthy response ....

Thanks in Advance
Gokul

推荐答案

答案1:我假设"Datagrid Viewer"仅表示"Datagrid".现在,一旦您从数据库检索值,就可以使用AutoGenerateColumns = true将其直接绑定到数据网格.这将自动将检索到的所有列添加到网格,或者您需要手动一个接一个地添加列.详细信息此处 [
Ans 1: I assume by ''Datagrid Viewer'' you mean ''Datagrid'' only. Now, once you retrieve values from DB, you can either directly bind it to the datagrid with AutoGenerateColumns=true. This would automatically add all the columns retrieved to grid or you need to manually add columns one by one. Details here[^].

Ans 2: In Crystal reports, there are options available like ''sorting'' and ''filtering''. You don''t need to write code for them. They are present in crystal designer and you can take use of it directly.


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

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