In a C# Winform application (3.5) there are numerous forms each with different listview controls. While each listview control uses different datasets the basic formatting of each remains the same.
Basic formatting takes this form:
/* appearance */
this.lstA.View = View.Details;
this.lstA.AllowColumnReorder = true;
this.lstA.CheckBoxes = false;
this.lstA.FullRowSelect = true;
this.lstA.GridLines = false;
this.lstA.Sorting = SortOrder.Ascending;
What I would like to do is create a class that can be used to set the initial format of the listview.
How do I pass the listview (by reference?) to the class so that the appearance properties can be set?