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.
Loading...
Related Quiz
- You want to retrieve a single value (e.g., the total number of records) from a SELECT statement. Which ADO.NET method would you use for this purpose?
- To improve query performance in Entity Framework, you can use ___________ loading to retrieve related entities in a single query.
- How can you configure the size of the connection pool in ADO.NET?
- Data binding in ADO.NET allows you to connect what to a user interface?
- What is the primary purpose of a DataTable in ADO.NET?