05-30-2011 10:15 AM
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
05-30-2011 10:21 AM
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
05-30-2011 10:21 AM
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
05-30-2011 10:26 AM