group by - Datatable compute c# filter string -


i have problem code:

_dtreturn.rows[i][_calculatedfield.outputcolumnname] =      _dtsource.compute(_calculatedfield.enmfunction.tostring() +      "(" + _calculatedfield.columnname + ")", _filterstring); 

the string generate seguent:

_dtreturn.rows[i][_calculatedfield.outputcolumnname] =      _dtsource.compute("sum(affidate)","lottoimportazione = 44438 , regione = 'sicilia'"); 

the code generate exception :

from google translate: "an unhandled exception of type ' system.data.dataexception ' in system.data.dll

additional information : invalid use sum () function , type of aggregation : boolean ."

eccezione non gestita di tipo 'system.data.dataexception' in system.data.dll

ulteriori informazioni: utilizzo non valido della funzione sum() e del tipo di aggregazione: boolean.

can me?


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -