To add a new row to a DataTable, you can use the ___________ method.

  • AddNewRow()
  • CreateRow()
  • InsertRow()
  • NewRow()
The NewRow() method of the DataTable class is used to create a new DataRow with the same schema as the DataTable. This method creates a new DataRow instance but does not add it to the DataRow collection. It simply returns a reference to the new DataRow, which you can then manipulate and add to the DataTable using the Add() method.
Add your answer
Loading...

Leave a comment

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