ReoGrid
ReoGrid copied to clipboard
Enter to edit: possible?
Hello How to edit cells with enter key like in excel? this is better than double click or F2 button; is there a feature must enabled to change this?
Any idea? Is this an option can activated or it need to created manually?
I think you have to do the logic by programming.
- Add an event for KeyDown.
- Start cell edit by call
StartEdit
method
Thank you jingwood I will try, my work is all with ironpython which is difficult to find informations and i need try to understand the available tips
Hi I don't find KeyDown? just CellMouseDown
Find it thank you: AfterCellKeyDown
Hi jingwood
I use sheet.AfterCellKeyDown += self.enterEdit
and event: sheet.StartEdit(e.CellPosition)
The problem when i press the key the next cell don't enter in edit mode until i press the key again,
As you see in the video, the cell enter in the edit mode one by one
https://user-images.githubusercontent.com/6026588/157640970-7f739f60-3b0f-4e08-8b5a-3deb10caba57.mp4
Did you tried the BeforeCellKeyDown
event. You can set the e.IsCancelled = true
to cancel the default action of ReoGrid when enter key is pressed.
I try it but it stack on the first cell and i can't move to other cells with key or enter
Hi jingwood In editor we can directly edit cell when press any key like in excel I can't do that with windows form, i need always to click twice with mouse or use F2, can you please show me where is the code about this? I see othe examples where this feature available , i don't know if that included in the dll or not
Thank you jingwood I will try, my work is all with ironpython which is difficult to find informations and i need try to understand the available tips
sorry to ask, is there any code for ironpython example to show how to use ReoGrid? In fact, if possible, I will try to use ReoGrid with https://github.com/khchen/winim