I have a requirement to remap the enter key in the xamDataGrid to go down instead of right (which is the default). What's the easiest way to accomplish this?
Oops, i click on "suggest answer" by mistake.
Can you try this, it should work:
<igDP:XamDataGrid.InputBindings> <KeyBinding Command="{x:Static igDP:DataPresenterCommands.RecordBelow}" CommandTarget="{Binding RelativeSource={RelativeSource AncestorType=igDP:XamDataGrid, Mode=FindAncestor}}" Key="Enter"/></igDP:XamDataGrid.InputBindings>
I was trying to do it even easier, like the following, but it's not working. I can't seem to find any documentation on KeyBinding.
<igDP:XamDataGrid.InputBindings> <KeyBinding Key="Enter" Command="MoveDownByLine"></KeyBinding> </igDP:XamDataGrid.InputBindings>
Hi,
maybe you can use InputBindings:
<igDP:XamDataGrid.InputBindings><KeyBinding Command="{Binding MyCommand}", Path=ActiveDataItem}" Key="Enter"/></igDP:XamDataGrid.InputBindings>