Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

how to mark first record by default in oo ALV

Hi Experts,

I am using OO ALV to display ALV Grid in Custom Container. How to mark the frst record by default in ALV Grid.!

Please help.

Thanks in Advance,

Regards,

Priya

Former Member
replied

Hi.,

Using set_selected_rows() method you can achieve this.,

First Call ALV using o_grid->set_table_for_first_display

Then call o_grid->set_selected_rows " here o_grid is reference to cl_gui_alv_grid

You have to pass parameter index 1 to it_row_no.

Also you can pass the row numbers which you want to select by default .,

hope this helps u.,

Thanks & Regards,

Kiran

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question