title: Removing duplicate data out of column datagridview vb.net
body: <p>I've looked all around and haven't found a answer :/</p>
  
  <p>screenshot: <a href="http://prntscr.com/9257cg" rel="nofollow">http://prntscr.com/9257cg</a></p>
  
  <p>I want that entry to only show up once and not stay there (the "to" column), basically remove the duplicates. Here is my update code</p>
  
  <pre><code>Private Sub datagridview1Update()
  
      'Remove rows if there are too many
      If DataGridView1.Rows.Count &gt; 9 Then
          DataGridView1.Rows.RemoveAt(0)
      End If
  
      DataGridView1.Rows.Add()
      DataGridView1.Rows(DataGridView1.Rows.Count - 2).Cells(0).Value = ipfrom.ToString 'From Column, size at 125
      DataGridView1.Rows(DataGridView1.Rows.Count - 2).Cells(1).Value = ipto.ToString  'To Column, size at 125
      DataGridView1.Rows(DataGridView1.Rows.Count - 2).Cells(2).Value = destinationport.ToString
      DataGridView1.Rows(DataGridView1.Rows.Count - 2).Cells(3).Value = sourceport.ToString
  
  End Sub
  </code></pre>