Use an anonymous type.
Eg
group x by new { x.Column1, x.Column2 }
More Related Contents:
- C# Linq Group By on multiple columns [duplicate]
- LINQ Aggregate algorithm explained
- LINQ Grouping dynamically
- Linq: help me to make this work
- Get all checked nodes of a treeview
- When to use .First and when to use .FirstOrDefault with LINQ?
- LINQ with groupby and count
- printing all contents of array in C#
- How do I apply OrderBy on an IQueryable using a string column name within a generic extension method?
- What guarantees are there on the run-time complexity (Big-O) of LINQ methods?
- Convert string[] to int[] in one line of code using LINQ
- LINQ – Left Join, Group By, and Count
- Func with out parameter
- LINQ: combining join and group by
- What is the Efficiency and Performance of LINQ and Lambda Expression in .Net?
- Linq order by, group by and order by each group?
- LINQ Inner-Join vs Left-Join
- DISTINCT() and ORDERBY issue
- High memory consumption with Enumerable.Range?
- Can I LINQ a JSON?
- Use linq to generate direct update without select
- Get List element position in c# using LINQ
- Linq – What is the quickest way to find out deferred execution or not?
- How to sort a dictionary by key
- Issues Doing a String Comparison in LINQ
- Expressing recursion in LINQ
- LINQ to Entities group-by failure using .date
- C# Searching for files and folders except in certain folders
- Linq where column == (null reference) not the same as column == null
- Does “foreach” cause repeated Linq execution?