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 7727233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:24:31+00:00 2026-06-01T05:24:31+00:00

Checking the datagrid example here http://www.silverlight.net/content/samples/sl4/toolkitcontrolsamples/run/default.html see the datagrid section It says that if

  • 0

Checking the datagrid example here
http://www.silverlight.net/content/samples/sl4/toolkitcontrolsamples/run/default.html
see the datagrid section

It says that if escape is it twice it will trigger to exit the editing of a row. I always have a datagrid where the user can edit a row but right now the user cannot cancel an edit how can I get the row to exit with the cancel attribute ?

My handler

    void RoutingPolicyGrid_RowEditEnded(object sender, DataGridRowEditEndedEventArgs e)
    {
        if (e.EditAction == DataGridEditAction.Commit)
        {

        }
        else //DatagridEditAction.Cancel
        {

        }
    }

Just to add here if I do it manually like the following the datagrid still triggers the RowEditEnded with the commit action this means it gets executed twice with the code below

    private void RoutingPolicyGrid_KeyUp(object sender, KeyEventArgs e)
    {
        if (e.Key == Key.Escape)
            this.RoutingPolicyGrid_RowEditEnded(sender, new DataGridRowEditEndedEventArgs(null, DataGridEditAction.Cancel));
    }
  • 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-06-01T05:24:32+00:00Added an answer on June 1, 2026 at 5:24 am

    By looking at the following link. The IEditable interface has to be implemented in order to be able to revert back the edition of a row and to trigger the cancel action.

    http://msdn.microsoft.com/en-us/library/system.windows.controls.datagrid.canceledit%28VS.95%29.aspx

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

Sidebar

Related Questions

I'm checking whether internet is available or not URL url = new URL(http://www.google.co.in/); final
Checking out the sample code from http://lukesampson.com/post/471548689/entering-and-exiting-https-with-asp-net-mvc written for ASP.NET MVC2, I noticed they
Checking the HTML source of a question I see for instance: <a id=comments-link-xxxxx class=comments-link>add
Checking to see if __name__ == '__main__' is a common idiom to run some
i have data grid. now here i am checking the condition if Companyrows.count is
Checking the simple code var http = require('http'); var server = http.createServer(function(req, res){ console.log(Got
Checking out the following modules for connecting to mysql db: https://github.com/sidorares/nodejs-mysql-native http://github.com/felixge/node-mysql http://github.com/Sannis/node-mysql-libmysqlclient Do
Checking data with targeting some sentence in when condition using xslt -1.0 example sentence
When checking the HTML source of a SharePoint 2010 Team site, I saw something
When checking checkbox_01 div1 toggles. HTML <div> <ul> <li><input type=checkbox id=checkbox_01 /></li> <div id=div1

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.