I have a datagrid that is filled with a dataset from an SQL query. What i would like to do is count how many occurrences there are of a certain entry, for example in Column 3 i would like to count how many times a string is repeated in the datagrid. Is there any way of doing this, perhaps with Linq? I initially tried doing this through an SQL query:
SELECT Count(*) Occurences
From myTable
WHERE Column_name Like 'stringPattern'
But the problem is that the database is pretty big and i already have the returned data so hoping to not have to re-query the database?
Any tips or suggestions would be appreciated.
Peter