I want to be able to handle key events on the GridView that will flip a GridViewColumn between view mode and edit mode programmatically. How do I do this?
Thanks, Sterren
2 Answers, 1 is accepted
0
Dimitrina
Telerik team
answered on 27 May 2013, 08:53 AM
Hello Sterren,
It depends on what Keys you would like to use for this purpose. If the GridView does not handle those keys internally, then you can just subscribe for the KeyDown event of the GridView and invoke BeginEdit for it.
If your key is special and the GridView already handles it, then you could create your own custom keyboard provider. Please refer to our online documentation for further details. You can define behavior for the keys you are interested in overriding the ProvideCommandsForKey method.