In LINQ to DataSet, which method is used to sort the result set in ascending order based on a specified column?

  • Ascending()
  • OrderBy()
  • Sort()
  • SortBy()
The correct method to sort the result set in ascending order based on a specified column in LINQ to DataSet is OrderBy(). This method sorts the elements of a sequence in ascending order according to a key. It allows you to specify the column based on which you want to sort the data.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *