Hi people. I'm trying to use this implementation of a DataSetHelper to group a DataSet by a column.
What I'm doing is:
DataSet ds_tmp = new DataSet();
DataTable dt_tmp;
ds_tmp.Tables.Add(data_table_UserTime);
dsHelper = new DataSetHelper(ref ds_tmp);
dt_tmp = dsHelper.SelectGroupByInto("UniqueUsers", ds_tmp.Tables[0], "User, sum(Time) TotalTime", "Time>0", "User");
data_table_UserTime is something like this:
User------Time
John------0.6
Mark------1.2
Paul------7.1
John------52.6
John------0.8
Paul------50.3
At the end, dt_tmp should have this:
User------Time
John------54.0
Mark------1.2
Paul------57.4
But what I get is this:
User------Time
John------0.6
John------52.6
John------0.8
Mark------1.2
Paul------7.1
Paul------50.3
So it seems it is not doing the sum(Time).
What can be happening?
Thanks in advance.