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 -

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

Determine if a XmlNode is empty or null in C#? -