Welcome to the Xceed Community | Help
Community Search  
More Search Options

Put a Textblock in edit mode in DataGrid

Sort Posts: Previous Next
  •  06-04-2012, 1:59 PM Post no. 32211

    Put a Textblock in edit mode in DataGrid

    I am trying to do some custom edit stuff on some textblocks in my Datagrid. It seems like the F2 key and the left mouse click are reserved and will not fire the KeyDown event and MouseDown event respectably. I want to put textblocks in edit mode with those two actions. What do I need to do?
  •  06-10-2012, 10:53 AM Post no. 32226 in reply to 32211

    Re: Put a Textblock in edit mode in DataGrid

    Hi,

    Have you tried setting the ActivationGestures? If you need moire explanation with examples, you can go to our online documentation here for more details. As stated in the docs, "Activation gestures are key and/or text input, which cause an element to enter edit mode and are defined through a cell editor's ActivationGestures property (see Examples 1 and 2)". The F2 key should be reserved for editing. You can take a look at the EditModes sample application that was installed on your machine when you installed the component.

    C:\Xceed Samples\Xceed DataGrid for WPF Professional Edition v4.3\CSharp\EditModes


    Marc

    Developer in Technical Support
    Xceed - Multi-talented components - http://xceed.com
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.