c# - Find sum of a column after using binding source filter -


i using bindingsource.filter small list of rows. either can find sum sum(mycolumn)
or filter using
bindingsource.filter="purchaseid = '" + purchaseid + "'".

how find sum of specific column after filtering?

i found solution using dataset

inventorydatabasedataset.tables["mytable"].compute("sum(mycolumn)", "purchaseid = '" + pid + "'").tostring(); 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

sql server - python to mssql encoding problem -

windows - Python Service Installation - "Could not find PythonClass entry" -