get maximum value in datatable
  • i have datatale in which i want to get max value from it hat code should use for it.
  • 1 Comment sorted by
  • Vote Up0Vote Down ithackerithacker
    117.50 Karma Accepted Answer
    you can use compute function for achieve this tasks.

    int maxValue = (int)table.Compute("MAX(Quantity)", ""); //Quantity is the column name here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook


Popular Posts of the Week