# Group By using code **Category:** [Epicor ERP 10](https://www.epiusers.help/c/e10/5) **Created:** 2016-12-16 16:06 UTC **Views:** 600 **Replies:** 5 **URL:** https://www.epiusers.help/t/group-by-using-code/36641 --- ## Post #1 by @Chris_Conn I am curious. The Group By feature on grids is very useful and easy to use. Instead of turning on Group By and dragging my fields, is there a way to do this in C# code? --- ## Post #2 by @josecgomez All right here you go buddy, you earned this one :slight_smile: http://bfy.tw/91oR --- ## Post #3 by @Chris_Conn O.M.G - I am laughing hard now. :joy: --- ## Post #4 by @josecgomez I think you should mark my answer as a solution #JustSayin --- ## Post #5 by @Chris_Conn --- ## Post #6 by @Chris_Conn On the bright side, google may now index this website for the solution :sunglasses: --- **Canonical:** https://www.epiusers.help/t/group-by-using-code/36641 **Original content:** https://www.epiusers.help/t/group-by-using-code/36641