12-26-2004 10:09 AM
Hi folks ,
does someone know how can control the postion of scroll bar of an alv grid ?
12-26-2004 11:08 AM
Through the instance method "<b>SET_SCROLL_INFO_VIA_ID</b>" of <b>CL_GUI_ALV_GRID</b> class.
code sample:
put this code after calling <b>set_table_for_first_display</b> method
DATA: row_info TYPE lvc_s_row ,
col_info TYPE lvc_s_col ,
row_id TYPE lvc_s_roid .
MOVE: 'XXXXX' TO col_info-fieldname .
MOVE: '150' TO row_id-row_id .
CALL METHOD grid1->set_scroll_info_via_id
EXPORTING
* IS_ROW_INFO =
is_col_info = col_info
is_row_no = row_id .
The above code will position the horizontal scroll at column XXXXXX and vertical scroll at 150th row.
Regards
Raja
12-26-2004 11:08 AM
Through the instance method "<b>SET_SCROLL_INFO_VIA_ID</b>" of <b>CL_GUI_ALV_GRID</b> class.
code sample:
put this code after calling <b>set_table_for_first_display</b> method
DATA: row_info TYPE lvc_s_row ,
col_info TYPE lvc_s_col ,
row_id TYPE lvc_s_roid .
MOVE: 'XXXXX' TO col_info-fieldname .
MOVE: '150' TO row_id-row_id .
CALL METHOD grid1->set_scroll_info_via_id
EXPORTING
* IS_ROW_INFO =
is_col_info = col_info
is_row_no = row_id .
The above code will position the horizontal scroll at column XXXXXX and vertical scroll at 150th row.
Regards
Raja