I need to count and present distinct/unique values in a dataGridView. I want to present it like this, and this code works just fine with lists.
List<
I think this will do it, but I'm not 100% sure. Try it out, if you have any issues let me know...
var distinctRows = (from GridViewRow row in dataGridView1.Rows select row.Cells[0] ).Distinct().Count();