Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Set cursor on grid's row

Former Member
0 Kudos
70

Hi there. Which method could I use to set corsor/focus (I mean that yellow line of CL_GUI_ALV_GRID) on some grid's line/cell?

3 REPLIES 3

former_member194669
Active Contributor
0 Kudos
44

Try this way

Set the cursor on a specific cell in the grid control.

CALL METHOD g_grid1->set_current_cell_via_id

EXPORTING

is_row_id =

is_column_id =

is_row_no =

0 Kudos
44

Great, but how to shade selected line with yelloworange color? It will be more clear for the user

0 Kudos
44

For this you probably have to change the selection method SEL_MODE of the layout variable when calling your grid for the first time. I don't think you can 'force' this any way or the other.