Inner Exception Message: Unable to cast object of type 'System.Reflection.RuntimeEventInfo' to type 'System.Reflection.MethodInfo'
<DataGrid CurrentCellChanged="{Binding CallCommand}" AutoGenerateColumns="False" ItemsSource="{Binding MobileList, UpdateSourceTrigger=PropertyChanged}" SelectionUnit="FullRow" IsReadOnly="True">
<DataGrid.InputBindings>
<KeyBinding Key="C" Modifiers="Ctrl" Command="{Binding Path=DataContext.CopyToClipBoardCommand}" CommandParameter="{Binding }" />
</DataGrid.InputBindings>
<DataGrid.Columns>
<!--Column 1-->
<DataGridTextColumn Binding="{Binding MobileName}" Header="Name" />
<!--Column 2-->
<DataGridTextColumn Binding="{Binding MobileOS}" Header="OS" />
</DataGrid.Columns>
</DataGrid>
My RelayCommand Source Code:
public RelayCommand<KeyboardEventArgs> CallCommand
{
get
{
return new RelayCommand<KeyboardEventArgs>((selectedItem) =>
{
});
}
}
Kindly assist me, how to Bind the RelayCommand
to the CurrentCellChanged
property in a DataGrid using MVVM approach ?
Kindly Bind the Event Command to CurrentCellChanged
Property.