RDLC - 在 VS2010 中添加数据源 [英] RDLC - Adding a Data Source in VS2010

查看:49
本文介绍了RDLC - 在 VS2010 中添加数据源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好.

我有一个 RDLC 文件,我想向其中添加一个数据源,尽管到目前为止没有任何运气.数据源是我自己写的自定义类(补充一下,我们一直都是这样做的).我们最近转换为 VS2010 RDLC 格式,这导致了一些问题,但我们对实现进行了一些更改,以解决更主要的问题.

I have an RDLC file and am wanting to add a data source to it, although without any luck so far. The data source is a custom class written by myself (just to add, we do this all the time). We recently converted over to the VS2010 RDLC format which caused some problems, but we've made some changes to our implementation that workaround the more major issues.

所以,回到手头的问题,当我尝试将我的数据源添加到 VS2010 中 RDLC 视图中的 DummyDataSource 列表时,它什么也不做,但是它确实将数据源添加到数据源列表中,但是您无法从 RDLC 视图的下拉列表中选择它,这意味着我根本无法添加数据源.

So, back to the issue at hand, when I attempt to add my data source to the DummyDataSource list in the RDLC view in VS2010 it just does nothing, however it does add the data source to the list of data sources, but you can't select it from the drop-down list in the RDLC view which means I can't add the data source at all.

有人遇到过这个问题吗?有什么我需要检查的吗?我热情地搜索,但没有运气.

Has anyone come across this problem? Is there anything I need to check? I've searched with fervour and had no luck.

推荐答案

你的数据源对象必须包含一个原生数据类型作为类的属性,否则它不会让你添加它.有趣,嗯!

Your data source object must include a native data type as a property on the class, otherwise it doesn't let you add it. Funny, eh!

这篇关于RDLC - 在 VS2010 中添加数据源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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