Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7435833
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:08:28+00:00 2026-05-29T10:08:28+00:00

When I am in a grid, I want to capture some keys to do

  • 0

When I am in a grid, I want to capture some keys to do something. I capture the “delete” key and I have not problems, but when I try to capture the “Return” key and I am editing a cell, when I press the Return key I don’t leave the edit cell mode.

If I don’t do the keybinding of the Return, when I press the return while I am editing a cell, it leaves the edit mode and goes to the next row.

If I comment all the code of the “Return” keybinding, the problem occurs, so I think that the problem is not the code that I use, but is the input keybinding of the return key.

must I have some special considerations when I want to capture the return key?

I am using the following code in the xaml to make the binding:

<DataGrid.InputBindings>
                <KeyBinding Key="Delete" Command="{Binding myCommand}"
                            CommandParameter="Delete"/>

                <KeyBinding Key="Return" Command="{Binding myCommand}"
                            CommandParameter="Return"/>
            </DataGrid.InputBindings>
</DataGrid.InputBindings>

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T10:08:30+00:00Added an answer on May 29, 2026 at 10:08 am

    You overwrite the existing input-binding to the CommitEditCommand, you need to manually execute that command in your own if you want to retain the default behavior.

    (You can use CommitEdit for that, which invokes the command.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to delete a row in the grid, but the grid always post's
i have a DevExpress Grid and want to set up an edit Mask on
I have a list of images in grid view.I want to display a gallery
I have a set of records in a panel grid where I want to
I want to have a 2x2 grid with a buttons inside. This is only
I have created a grid and want to access it when I click on
i have one model for pictures and want to show them in grid view
I have a grid which I want to populate with images. So Internally I
I have a neat little javascript data grid and I want people to be
I have a form with a grid and I want to pass info from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.