0

Here is how I insert data in the 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"))

I have a data source typed as Dictionary<string,Person> and I wonder how can I refer to dict["chief"] in the RDLC design mode?

I have tried =Fields("chief")!FirstName.Value and =Fields!FirstName.Value("chief") whithout success.

Bellash
  • 7,560
  • 6
  • 53
  • 86

1 Answers1

-1

Add a Key property in your Person object so that your row is set as follows

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

and then use the collection of these objects as your report data source or convert your dictionary into a table.

Community
  • 1
  • 1
CallMeKags1
  • 9
  • 1
  • 3