Hi,
a have a RadGridView with a bound ObservableCollection datacontext.
When the user selects a row and pushes the Delete key, the row disappears and the Deleted event is fired.
I have a menu item as well which allows to delete the selected row programmatically,
but when I call mygrid.Items.Remove(myselectedrow.DataContext) the row disappears, but the Deleted event is not triggered.
How can I get the grid to fire the Deleted event when removing a row programmatically as well?
Is it something like
?
Thank you,
Bye
a have a RadGridView with a bound ObservableCollection datacontext.
When the user selects a row and pushes the Delete key, the row disappears and the Deleted event is fired.
I have a menu item as well which allows to delete the selected row programmatically,
but when I call mygrid.Items.Remove(myselectedrow.DataContext) the row disappears, but the Deleted event is not triggered.
How can I get the grid to fire the Deleted event when removing a row programmatically as well?
Is it something like
mygrid.RaiseEvent(
new
RoutedEventArgs(RadGridViewEvents.DeleteRow, my_row));
Thank you,
Bye