title: C# - Common way to format listview controls on forms?
body: <p>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.</p>
  
  <p>Basic formatting takes this form:</p>
  
  <pre><code>  /* 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;
  </code></pre>
  
  <p>What I would like to do is create a class that can be used to set the initial format of the listview.  </p>
  
  <p>How do I pass the listview (by reference?) to the class so that the appearance properties can be set?</p>