title: best way to add button control to listview or use datagridview
body: <p>I am trying to add button functionality to a listview and don't know where to begin. I currently have a listview that is populated from sql server query. I would like to add a button for each of the items added to the listview. Is this possible? I also see there is a datagridview but I am not sure how to populate the columns the same way as the listview or can I not? It would seem that the datagrid view is the better way to go as it has a button column build into it. So I am here to ask for some direction/guidance. Thank you (I am also still learning C# so please be kind!)</p>
  
  <p>Current listview add items:</p>
  
  <pre><code>foreach (DataRow row in dt.Rows)
          {
              //createButtons();
  
              if (row["NT"].ToString() == "C")
              {
                  conSpell.Text = row["full_name_ro"].ToString();
              }
              if (row["NT"].ToString() == "N")
              {
                  if (!multipleNs)
                  {
                      apvSpell.Text = row["full_name_ro"].ToString();
                  }
                  else
                  {
                      apvSpell.Text += Environment.NewLine + row["full_name_ro"].ToString();
                  }
  
                  multipleNs = true;
              }
              if (row["NT"].ToString() == "V" ) //&amp;&amp; 
              {
                  ListViewItem item = new ListViewItem(row["Full_Name_ro"].ToString());
                  item.SubItems.Add(row["ADM1 Name"].ToString());
                  item.SubItems.Add(row["DSG"].ToString());
                  item.SubItems.Add(row["Feature Designation Name"].ToString());
                  item.SubItems.Add(row["UFI"].ToString());
  
                  //add items to listView box
                  listVariants.Items.Add(item);
                  //Sort Items
                  listVariants.Sorting = System.Windows.Forms.SortOrder.Ascending;
  
              }
  </code></pre>
  
  <p>I thought something like this would work for the datagridview but with no luck:</p>
  
  <pre><code> dataGridView1.DataSource = dt;
   dataGridView1.DataMember = "full_name_ro";
  </code></pre>
  
  <p>Thanks for any help!</p>