Hi... I have an already activated cell which is not in Edit Mode...
I'd like that when the user clicks on that cell a second time (not double click), the cell switch to Edit Mode...
Okay, well, if I am wrong about that then you'd have to code it youself. What you could do is handle the MouseDown event and determine which cell was clicked and if that cell is selected, enter edit mode.
So there are 2 tricky parts:
Q1) How do you determine what cell the mouse is over?
A1) HOWTO:UltraWinGrid Mouse Position and Cell Identification
Q2) How do you enter edit mode on the cell once you find it.
A2) Use the PerformAction(EnterEditMode) method.
Hi all,
could we go back to the first question on this thread?
joz said: I have an already activated cell which is not in Edit Mode... I'd like that when the user clicks on that cell a second time (not double click), the cell switch to Edit Mode...
I have an already activated cell which is not in Edit Mode... I'd like that when the user clicks on that cell a second time (not double click), the cell switch to Edit Mode...
Mike says: I'm pretty sure that if the cell is selected, this will happen automatically.
I thought that too, but it doesn't. I have CellClickAction = CellSelect and the column is a simple text column. It goes to Edit mode if I press F2.
Which are the other settings that affect this behavior?
Hi Allan,
So what is your question?
You would probably use the MouseDown event and respond when the button is the right mouse button.
Hi Mike
i have exact same as Joz but i dont want to edit cell i want to show another form when the cell button has been clicked
regards
allan
Thank you Mike...
I got it!