how to get row number from DataTable.Compute method

  • Thread starter Thread starter AboutJAV
  • Start date Start date
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



AboutJA wrote:

how to get row number from DataTable.Compute method
12-Mar-07

how do you get the row number from the DataTable Compute() method

Thanks

Previous Posts In This Thread:

how to get row number from DataTable.Compute method
how do you get the row number from the DataTable Compute() method

Thanks


Submitted via EggHeadCafe - Software Developer Portal of Choice
SharePoint List Usage and Statistics
http://www.eggheadcafe.com/tutorial...d-9723a79fdb14/sharepoint-list-usage-and.aspx
 
Back
Top