I need to create a report that displays the details (including all children) for a single entity. I've got a method on my Object context that returns a single entity and I'm setting my entity datasource to that method. At runtime, I'd like to set the datasource in code to the current entity (which should already have all the navigation properties loaded, reducing the # of trips to the database).
I have a few questions:
1. Is it okay that I'm setting the datasource at designtime to a method that requires a parameter, but at runtime I set it to the entity (hence, no parameters needed)?
2. How do I show the details for the child collections? I'm guessing I will need subreports, but I'm not sure how to pass the child collection over. Will I need to use the NeedDataSource event? and if so, how do I use that and will I still be able to design the report using the designer?
3. How do I show/hide data? For example, one of my fields is a boolean value. Based on true or false of this field, I would like to show/hide (collapse) a certain area that displays several other fields. I read on another thread about setting the height of the details, but my data is in a panel (which I couldn't find a height property for).
I have a few questions:
1. Is it okay that I'm setting the datasource at designtime to a method that requires a parameter, but at runtime I set it to the entity (hence, no parameters needed)?
2. How do I show the details for the child collections? I'm guessing I will need subreports, but I'm not sure how to pass the child collection over. Will I need to use the NeedDataSource event? and if so, how do I use that and will I still be able to design the report using the designer?
3. How do I show/hide data? For example, one of my fields is a boolean value. Based on true or false of this field, I would like to show/hide (collapse) a certain area that displays several other fields. I read on another thread about setting the height of the details, but my data is in a panel (which I couldn't find a height property for).