DataRow.ItemArray 属性
通过一个数组来获取或设置此行的所有值。
命名空间:System.Data
程序集:System.Data(在 system.data.dll 中)
代码示例:
private void CreateRowsWithItemArray()
{
// Make a DataTable using the function below.
DataTable dt = MakeTableWithAutoIncrement();
DataRow relation;
// Declare the array variable.
object [] rowArray = new object[2];
// Create 10 new rows and add to DataRowCollection.
for(int i = 0; i
关注
打赏