MS Expression Blend: Sketchflow - Populating a sub datagrid with data upon selecting a specific row of a master datagrid?
Question
I've recently started using Expression Sketchflow to prototype some user interface designs. I currently have a master datagrid at the top of the page, which I would like to allow the user when selecting a particular grid row to see a sub-datagrid below be populated with specific data relevant to that specific row of master data.
Could anyone shed some light on the subject!?
Help greatly appreciated.
Solution
I figured out how to do this by reading this article: Expression Blend 3 – secrets of working with data.
Here's the basic steps (you already did a couple it sounds like)
- Create your sample data set
- Under the Data tab select the List Mode and drag your collection onto the screen, a list view of your data will be created (Master datagrid)
- Now, select the Details Mode and drag and drop your collection onto the screen where you want the details to be displayed. (sub datagrid)
- Tweak the fields displayed by dragging properties into the respective containers or modifying the XAML / Bindings list
If you have a child collection in your data, you may have to jump through a few more hoops.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow