Skip to content

Instantly share code, notes, and snippets.

@wingedpanther
Created November 19, 2015 11:32
Show Gist options
  • Save wingedpanther/10653c682df1efc0814e to your computer and use it in GitHub Desktop.
Save wingedpanther/10653c682df1efc0814e to your computer and use it in GitHub Desktop.
get counts of values in a column DGV
Dim count = (From row As DataGridViewRow In dgvb.Rows _
Where row.Cells("Name").Value = "Sunshine" And row.Cells("Name").Value IsNot DBNull.Value _
Select row.Cells("Name").Value).Count()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment