Hi, I have a simple scenario where I'm displaying some products in the datagrid control and the details of a particular product is shown in DataForm. Each of the products are of different type and I want to display the fields only related to the Product Type in the DataForm. e.g If User selects Product 1 from the grid, I want to populate the fields (1- 5) in DataForm and for Product 2 (fields 5 10) etc.
I also need to modify some fields as well like Category would be a comboBox with ItemSource as Categories table etc.
I believe this would be multilple templates for EditTemplate.
How Can I do that. Any code sample would be much appreciated.