Application Development and Automation 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: 
Read only

Set cursor on grid's row

Former Member
0 Likes
577

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?

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
Read only

former_member194669
Active Contributor
0 Likes
551

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 =

Read only

0 Likes
551

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

Read only

0 Likes
551

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.