I have a master/detail hierarchy implementation (see attached picture).
I have coded to RowLoaded event to set GridViewRow.IsExpandable = false for master rows whose detail collection is empty. I wanted to visually show that there were no associated details, and save the user from clicking on the (+) expander control needlessly. I have set ShowInsertRow="True", and my preference is to keep ShowInsertRow="False". Instead, I would like to have a button (elsewhere in the UI) to call the BeginInsert() method. However, how do I target the detail level - particularly if the master row has an empty detail collection?
I have coded to RowLoaded event to set GridViewRow.IsExpandable = false for master rows whose detail collection is empty. I wanted to visually show that there were no associated details, and save the user from clicking on the (+) expander control needlessly. I have set ShowInsertRow="True", and my preference is to keep ShowInsertRow="False". Instead, I would like to have a button (elsewhere in the UI) to call the BeginInsert() method. However, how do I target the detail level - particularly if the master row has an empty detail collection?