This question is locked. New answers and comments are not allowed.
Hi,
delete rows should only be possible for new items - I mean not yet saved.
Since SportLeistId is 0 as long as the item is not saved, the Button is visible for new items.
Unfortunately with keyboard "Del" deleting is possible even for already saved items.
I tried to prevent this with CanUserDeleteRows="false", but then my button became disable as well.
Any idea how can I solve this?
Thanks
Berthold
delete rows should only be possible for new items - I mean not yet saved.
For this I added this row to the grid:
<Controls:GridViewColumn> <Controls:GridViewColumn.CellTemplate> <DataTemplate> <Controls3:RadButton Content="Löschen" Command="Controls:RadGridViewCommands.Delete" CommandParameter="{Binding}" Visibility="{Binding SportLeistId, Converter={StaticResource localConvertVisibility}, ConverterParameter=0}" /> </DataTemplate> </Controls:GridViewColumn.CellTemplate> </Controls:GridViewColumn>Unfortunately with keyboard "Del" deleting is possible even for already saved items.
I tried to prevent this with CanUserDeleteRows="false", but then my button became disable as well.
Any idea how can I solve this?
Thanks
Berthold