# Grid, press enter move cursor right

**URL:** <https://www.ruby-forum.com/t/grid-press-enter-move-cursor-right/191408>\
**Category:** wxRuby\
**Created:** [July 12, 2010, 6:29am UTC](https://www.ruby-forum.com/t/grid-press-enter-move-cursor-right/191408 "2010-07-12T06:29:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hendra\_kusuma](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/5f8ce5/32.png) [@hendra\_kusuma](https://www.ruby-forum.com/u/hendra_kusuma)\
**Post date:** [July 12, 2010, 6:29am UTC](https://www.ruby-forum.com/t/grid-press-enter-move-cursor-right/191408/1 "2010-07-12T06:29:59Z")

</div>

Dear all

I want wxgrid to move cursor right instead of down  
when I press enter

how do I do that?

---

<div class="post-metadata">

**Author:** ![hendra\_kusuma](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/5f8ce5/32.png) [@hendra\_kusuma](https://www.ruby-forum.com/u/hendra_kusuma)\
**Post date:** [July 13, 2010, 7:57am UTC](https://www.ruby-forum.com/t/grid-press-enter-move-cursor-right/191408/2 "2010-07-13T07:57:54Z")

</div>

to make it clear

I have a grid  
then I use

evt\_grid\_cell\_change() do |event|  
grid\_change(event)  
end

in grid\_change(event) I do alot of calculation  
but I want that after the calculation finish,  
cursor move right instead of going down

I already tried move\_cursor\_right but it gives me error  
unless I pass false as parameter, then it will block the cell and the  
cell  
right to it  
but the cursor still going down

I am not using table base, just the grid  
so, how to achieve what I need?
