Datagrid details template

May 14, 2009 at 4:10 PM

Hi.

The data grid has a details template which gets displayed when a row is selected.

What I want it to have is display all items in the grid occupying 2 rows each, so a custom data template (item template).  Then when a user clicks on a row and enters edit mode or adds a new item, I want the row to be displayed as a grid with a total of 5 rows.

I (could) provide this functionality with an ItemTemplate and EditItemTemplate (or template selector).  Can this be done?

 

Thanks.

May 14, 2009 at 4:24 PM

I should add that I dont want to display BOTH row and details when an item is being edited. 

during an edit (or a selected item not being edited) I just want the 5 row grid displayed.