Which method is used to create a DataView from a DataTable in ADO.NET?

  • DataTable.CreateView()
  • DataTable.DefaultView()
  • DataView.CreateFromTable()
  • DataView.Table()
The method used to create a DataView from a DataTable in ADO.NET is DataTable.DefaultView(). This method returns a DataView object representing a customized view of the DataTable, which can then be manipulated and used for various data operations such as sorting, filtering, and navigation. It provides a convenient way to work with subsets of data within a DataTable.
Add your answer
Loading...

Leave a comment

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