您的位置:首页 > 编程语言 > C#

C# DataTable.NewRow 方法

2014-03-03 18:55 169 查看
DataTable.NewRow 方法

Creates a new DataRow with the same schema as the table.

Namespace: System.Data

Assembly: System.Data (in System.Data.dll)

Return Value

Type: System.Data.DataRow

A DataRow with the same schema as the DataTable.

You must use the NewRow 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 NewRow to create new rows,
the rows must be added to or deleted from the data table before you call Clear.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: