How do you apply sorting to a DataView in ADO.NET?

  • By using the Sort property
  • By using the Select method with an ORDER BY clause
  • By using the Sort method
  • By setting the OrderBy property
The correct option is option 3, By using the Sort method. The Sort method allows you to specify the column(s) and the sort order(s) for the DataView. This enables you to arrange the data in the desired sequence, facilitating easier data manipulation and presentation.
Add your answer
Loading...

Leave a comment

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