Skip to Content
avatar image
Former Member

Restore row color after refreshing alv grid


I have a question about row color in alv grid.

At first loading, I display records of Flights that still have available seats. Color yellow for odd rows and blue for even rows. Everything goes as planned.

I also have a button that enables the user to toggle between 'Display Only Flights Which Still Have Available Seats' and 'Display All Flights'.

The button does what it suppose to do, but I cannot maintain the row color. The row color is reset after I click on this button.

Is there any function or method that can store/restore the row color?

Thank you very much.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jun 29, 2017 at 05:11 AM

    It depends whether the ALV table is updated (filter function) or recreated. In the first case, the colors are kepts, in the latter case it's recreated so you must assign colors again.

    Add comment
    10|10000 characters needed characters exceeded