I need a GridView which is:
- IsReadOnly="True"
- ShowInsertRow=True"
- CanUserInsertRows="True"
- CanUserDeleteRows="True"
I have ReadOnly GridView but I want the InsertRow button to visible. We have this button wired up to open a dialog from which we make a selection and add that selection to the GridView. We can do all this with a IsReadOnly="False" grid but we need to block the user from editing the values in this grid.
I tried setting the "PART_GridViewVirtualizingPanel" in the template to IsHitTestVisible="False" but unfortunately we have another requirement... the first Column in the grid is Templated with a RadButton, who's command is to remove the Row! If I set the "PART_GridViewVirtualizingPanel" to be IsHitTestVisible="False", then the templated RadButton in this column is also IsHitTestVisible="False".
I hope I'm making some form of sense so far?
Question?
Is there any way to modify the template for a GridView to make the content ReadOnly and yet have the InsertRow area visible and clickable?