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"))
然后将这些对象的集合用作您的报表数据源或。请发布报表数据工具箱的图片,以便我可以查看数据字典?