This example shows how to optimize the column width so that column headings and data are not chopped off.
alv->get_columns( )->set_optimize( ).