Hello,
I have this question,
Is there any other solution to move around all the cells in a ultragrid using Up, Down, Left and Right Keys?
I saw and tried with this code:
private sub UltraGrid1_KeyDown(ByVal sender As Object, _ ByVal e As System.Windows.Forms.KeyEventArgs) _ Handles UltraGrid1.KeyDown
ByVal
As Object
As
Handles
Select Case e.KeyValue Case Keys.Up Me.UltraGrid1.PerformAction(UltraGridAction.ExitEditMode, False, False) Me.UltraGrid1.PerformAction(UltraGridAction.AboveCell, False, False) e.Handled = True Me.UltraGrid1.PerformAction(UltraGridAction.EnterEditMode, False, False) Case Keys.Down
Me.UltraGrid1.PerformAction(UltraGridAction.ExitEditMode, False, False) Me.UltraGrid1.PerformAction(UltraGridAction.BelowCell, False, False)
*
And so on
End sub
the Behavior of this code is exactly that I want,
But, Isn't there any other solution to do this instead of using the code above?Or this is the only way to do that?
The reason why I want another solution is that I don't want to use much code,(performance reasons)any suggestion I'll be very grateful
This is the best way to do it.
What kind of performance issues are you referring to? There's no way that this code could possibly cause any performance issues as far as I can see.
I just want to move around the Ultragrid like an standard Datagridview control of visual Studio.
The problem that I have is 'cause the displace is blocked as default...
Thanks.
vfn_it said:the displace is blocked as default
I don't understand what this means. What's a displace?
I reffer "displace" or "displacement" as move around the grid: up, down, left, right...
Oh. This should help:
HOWTO:UltraWinGrid Cursor Movement like Excel
You sent me to the start point, I was using keydown events, but I was looking for another solution, maybe a Displaylayout or something without keydown events, anyway thanks a lot I'm using again events in my grid, Your answer is usefull. Thanks again.
Regards!!