DataTable Compute Method
-
Compute is one of the methods of DataTable class. This method computes an expression on the current rows that pass the filter criteria. Syntax Object DataTable.Compute(string expression , string filter) Expression - The expression to compute. Filter - The filter to limit the rows that evaluate in the expression. This method's return type is System.Object. So, you have to cast it with appropriate data type. The following operations can be passed through as expression parameter. Sum -> Sum Average -> Avg Minimum -> Min Maximum -> Max Count -> Count Statistical standard deviation ->StDev Statistical variance -> Var http://www.mindfiresolutions.com/DataTable-Compute-Method-628.php[^]
Cheers, Eliza
-
Compute is one of the methods of DataTable class. This method computes an expression on the current rows that pass the filter criteria. Syntax Object DataTable.Compute(string expression , string filter) Expression - The expression to compute. Filter - The filter to limit the rows that evaluate in the expression. This method's return type is System.Object. So, you have to cast it with appropriate data type. The following operations can be passed through as expression parameter. Sum -> Sum Average -> Avg Minimum -> Min Maximum -> Max Count -> Count Statistical standard deviation ->StDev Statistical variance -> Var http://www.mindfiresolutions.com/DataTable-Compute-Method-628.php[^]
Cheers, Eliza
Congratulation, you are one of the few who have read the documentation. Now, do you have an actual question?
I know the language. I've read a book. - _Madmatt
-
Congratulation, you are one of the few who have read the documentation. Now, do you have an actual question?
I know the language. I've read a book. - _Madmatt
Hey - don't knock it. It's the first time I can remember that someone's actually posted the answer to their homework instead of the question... :laugh:
You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy
-
Hey - don't knock it. It's the first time I can remember that someone's actually posted the answer to their homework instead of the question... :laugh:
You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy
We don't do homework. Guessing what the question of the homework is, we don't do either. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
All Toronto weekends should be extremely wet until we get it automated in regular forums, not just QA.