How can we get the counts of rows by the value of a given column?
- I am creating IEnumerable from datatable returned from stored procedure - DataSet ds = new DataSet(); // code to get table using sp IEnumerable<DataRow> Myrows = ds.Tables[0].AsEnumerable();
- My table returns data like - Id | Column1 | Column2 | Column3 | 1 | xCol1 | xCol2 | xCol3 | 2 | xCol1 | xyy | ser | 3 | xCol2 | 2324 | ser |
- now i want to get count of rows with group by Column1 . So my result should be - Count | Column | 2 | xCol1 | 1 | xCol2 |
 
     
     
     
    