title: Adding String Array to listView Row Control C# asp.net
body: <p>This is my first attempt at asp.net and webforms, windowsforms, all of it. I originally populated data in a listbox, but I could only get one column and thought the listView sounded like it would do what I wanted. </p>
  
  <p>The most promising solution I found was this:</p>
  
  <pre><code>    DataSet listData = new DataSet();
      CancellationsControls cancelCtrl = new CancellationsControls();
      listData = cancelCtrl.GetScheduledReleaseDataSet();
  
      DataTable dtable = listData.Tables[0];
  
      scheduledReleasesTag.Items.Clear();
      foreach (DataRow row in dtable.Rows)
      {
          string[] ar = Array.ConvertAll(row.ItemArray, p =&gt; p.ToString());
          scheduledReleasesTag.Items.Add(new ListViewDataItem(ar));
      }
  </code></pre>
  
  <p>The dtable is a custom table of a query joining a number of tables.</p>
  
  <p>in the foreach loop the ar string array succesfully shows the colums of data that I want, but the ListViewDataItem requires two int arguments instead of a string array like the example I pulled this from. </p>
  
  <p>I've tried to figure out more about how the listView control works, but this is as close as I have been able to get to getting anything. Any help with explanations would be very appreciated.</p>
  
  <p>Thank you :)</p>