Creates a new DataRow with the same schema as the table.
Assembly: System.Data (in System.Data.dll)
You must use the method to create new DataRow objects with the same schema as the DataTable. After creating a DataRow, you can add it to the DataRowCollection, through the DataTable object's Rows property. When you use to create new rows, the rows must be added to or deleted from the data table before you call Clear.
The following example creates a DataTable, adds two DataColumn objects that determine the table's schema, and creates several new DataRow objects using the method. Those DataRow objects are then added to the DataRowCollection using the Add method.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.