I want to raise a new event called SelectionChanged from my own user control which uses RadGridVie. This new event will be raise when RadGridView control raises the SelectionChanged event.
The problem is SelectionChangedEventHandler expects eventargs type of "SelectionChangedEventArgs
" but SelectionChanged event of RadGridView uses "SelectionChangeEventArgs
How do I handle this type of casting? Do I need to create a new instance of SelectionChangedEventArgs and pass to new event after assigning new values ? Or there is any other work around?
Also, what is the actual different between these two event arguments?
public event Telerik.Windows.Controls.SelectionChangedEventHandler SelectionChanged;
private void Grid_SelectionChanged(object sender, Telerik.Windows.Controls.SelectionChangeEventArgs e)
protected virtual void RaiseSelectionChangedEvent(object sender, Telerik.Windows.Controls.SelectionChangedEventArgs e)
if (SelectionChanged != null)