When might you use the ToTable() method on a DataView in ADO.NET?

  • When you want to create a new DataTable from the DataView
  • When you want to add a new table to the DataSet
  • When you want to convert the DataView to an array
  • When you want to remove duplicate rows from the DataView
The correct option is option 1, When you want to create a new DataTable from the DataView. The ToTable() method in ADO.NET is used to generate a new DataTable containing the same data as the DataView. This is helpful when you need to work with the DataView's data in a DataTable format for further processing or manipulation.
Add your answer
Loading...

Leave a comment

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