Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/278.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# RDLC:使用字典时如何引用行<;字符串,TValue>;作为数据源?_C#_Dictionary_Reporting_Rdlc_Strongly Typed Dataset - Fatal编程技术网

C# RDLC:使用字典时如何引用行<;字符串,TValue>;作为数据源?

C# RDLC:使用字典时如何引用行<;字符串,TValue>;作为数据源?,c#,dictionary,reporting,rdlc,strongly-typed-dataset,C#,Dictionary,Reporting,Rdlc,Strongly Typed Dataset,下面是我如何在字典中插入数据 Dictionary<string, Person> dict=new Dictionary(); dict.Add("dev",new Person("John","Skeet")) dict.Add("code",new Person("Theodor","Bellash")) dict.Add("chief",new Person("John","Skeet")) Dictionary dict=new Dictionary();

下面是我如何在字典中插入数据

  Dictionary<string, Person> dict=new Dictionary();
  dict.Add("dev",new Person("John","Skeet"))
  dict.Add("code",new Person("Theodor","Bellash"))
  dict.Add("chief",new Person("John","Skeet"))
Dictionary dict=new Dictionary();
dict.Add(“dev”,新人(“约翰”,“飞碟”))
添加(“代码”,新人(“西奥多”,“贝拉什”))
添加(“酋长”,新人(“约翰”,“飞碟”))
我有一个键入为
字典的数据源,我想知道如何在RDLC设计模式中引用
dict[“chief”]


我试过
=字段(“主管”)!FirstName.Value
=字段!FirstName.Value(“chief”)
未成功。

Person
对象中添加一个
Key
属性,以便按如下方式设置行

new Person("dev","John","Skeet"))

然后将这些对象的集合用作您的报表数据源或。

请发布报表数据工具箱的图片,以便我可以查看数据字典?