Trouble fitting columns into a ListView
Posted on 2006-06-16
I add columns to the ListView thusly:
driverLV.Columns.Add("Driver", 105, HorizontalAlignment.Left);
driverLV.Columns.Add("# Runs", 50, HorizontalAlignment.Left);
driverLV.Columns.Add("# Orders", 55, HorizontalAlignment.Left);
It all works okay, but I need to fuss endlessly to get the columns to fit into the space provided by the size of the ListView. Is there an easier way? For example, is there a way I could specify the width of th first two, then use all remaining space for the final column. But not so much that it would add a scroll bar?