Scenario: In a .NET application, you want to provide users with the ability to sort and filter a large dataset displayed in a DataGridView. Which ADO.NET feature would you utilize for this purpose?

  • DataAdapter
  • SqlCommandBuilder
  • DataView
  • DataSet
The correct option is "DataView". A DataView provides a flexible way to sort and filter data from a DataTable or a DataSet. By binding the DataGridView to a DataView that is associated with the dataset or table, users can interactively sort and filter the data displayed in the DataGridView.
Add your answer
Loading...

Leave a comment

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