Skip to Content
0
Former Member
Nov 15, 2012 at 11:38 AM

ALV Column width re size Event?

48 Views

Hi Experts

I've created a report that used a dynamic internal table which I then display by using the cl_salv_table=>factory Method.
With this ALV Grid Output I've also implemented the Top of Page event for my Header details.

Now we get to my problems:

I would like to create a "Double Header" which is not to difficult when using cl_salv_form_layout_grid Class

but my results needs to look like something as follows:

Top of Page | Department1 | Department2 |

ALV Grid |ColA | ColB | C1 | C2 | C3 | C1 | C2 | C3 |

My Problem lies with when the user re sizes the columns, the header(Top of Page) stays the same and does not re size to fit its suited columns below.

Firstly: Is there an event that gets triggered when the user drags the column bigger(wider) / smaller(narrower) or when they double click on the column to auto size it?

Secondly: If such an event exists, how can I get the selected/changed column width to re size the header's grid to fit?

Your help will be greatly appreciated.

Thanks

Vic