Visual Studio 2012分组 [英] Visual Studio 2012 grouping

查看:111
本文介绍了Visual Studio 2012分组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试显示两种类型的过程的数据。单击按钮时,一个过程显示所有中心。另一个显示基于值成员的特定中心。在这种情况下,值成员是项目ID。



当我单击按钮检索所有中心的数据时,会出现问题。数据无法正确显示。而且,大部分内容甚至都没有显示在页面上。有没有办法对所有数据进行分组,以便正确显示。

我正在使用Visual Studio 2012和C#。数据显示在报表查看器上。





以下是表单中的一些示例代码。



I'm trying to display data for two types of procedures. One procedure displays all the centers when clicked on a button. the other displays a specific center based on the value member. In this case the value member is the project ID.

The problem occurs when I click on the button to retrieve data for all the centers. The data does not display correctly. And, most of it isn't even being shown on the page.Is there a way to group all the data so that it can be displayed properly.
I'm using Visual Studio 2012 and C#.The data is being displayed on a report viewer.


Here's some sample code from the form.

private void btn_proj_acct_Click(object sender, EventArgs e)
      {
          this.Rpt_proj_acct.RefreshReport();
          this.Rpt_proj_acct.Clear();
          projectRpts.EnforceConstraints = false;
          projectRpts.DT_ProjAcct.Clear();

          DataSet Ds = new DataSet();
          Ds = ESCIS_DL.GetAllDataSet_ProjectAccountingDS();
          projectRpts.DT_ProjAcct.Merge(Ds.Tables[0]);
          this.Rpt_proj_acct.RefreshReport();
          this.Rpt_proj_acct.Visible = true;
      }

推荐答案

我认为你需要创建两个不同的数据集来cocntaing所有的相关数据和将它们绑定在一起以显示在报告中
i think for that you need to create two different dataset cocntaing all the relative data and bind them together to show in the report


这篇关于Visual Studio 2012分组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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