How to read keypress in grid

Hi there

I have a form with a grid displaying all data below it
I want to be able to navigate around the grid (grid is readonly),
then when I press enter
data of current row will be put on the form

how to do that?

thank you

I believe the event handler that you require, is
evt_grid_cell_left_click()
and evt_grid_label_left_click() are the events that you want to catch,
and
they give an GridEvent instance, where you can use get_row() to get the
row
on the instance of the GridEvent. The documentation doesn’t have a link
to
the GridEvent class, but the documentation is there, you can find it
here:
http://wxruby.rubyforge.org/doc/gridevent.html

hth,

Mario