My question is: Why does the report "get" the list of ProfileItems that it uses for the report parameter twice?
Here's the setup:
Q3 2015 report
Adding a ReportParameter (right click report surface, select ReportParameters...)
Click the Add button, name it ProfileId.
Open the AvailableValues drop down and add a new ObjectDataSource for the Data Source of this parameter.
I'm using simple "POCO" object that returns an IEnumerable<ProfileItem> and ProfileItem has a First/Last Name and an Id field. Using a quick SQL query it populates all the active profiles from the database. Simple so far. Set the ValueMember to the Id field (it's a Guid) and the DisplayMember to the name. All done! Oh wait...I also have to set the Value.
Also, the report doesn't like Guids, so I've added a getter property that just returns the Guid Id as string.
Ok, now it all works fine!
Except, I was nosey and noticed that it accesses the data source to return the list of ProfileItem twice.
Why would it access the function twice?
Thanks!