datatable group by 하기1 DataTable에서 Group By Sum 하기 DataTable 에서 Group by 할일이 생겼는데, LINQ를 사용할 수 없는 상태였다.참으로 좋은 시스템을 가지셔서 아직 .NET 2 버젼이기 때문이다. 헐~아래 함수를 만드신 아주 귀하신 분때문에 문제를 해결할 수 있었다. private DataTable GetGroupedBy(DataTable dt, string columnNamesInDt, string groupByColumnNames, string typeOfCalculation) { //Return its own if the column names are empty if (columnNamesInDt == string.Empty || groupByColumnNames == string.Empty) { return dt; } //Once .. 2015. 1. 19. 이전 1 다음