How to new a DataRow ?

  • Thread starter Thread starter ad
  • Start date Start date
A

ad

I am using the new feature of TableAdapter in VS2005.
I want to new a typed DataRow, I use the codes:

System.Data.DataRowBuilder rb;
MyDataSet.myRow rowMine = new MyDataSet.myRow(rb);

But it failed.

How can I new a DataRow?
 
The table object should have a NewRow method you can use.
MyDataSet.myRow rowMine = MyDataSet.NewRow();
 
Ad,

There are very much methods to add a new rows, the most raw one is in my
opinion

DataRow dr = MyTable.NewRow();
and than what you don't have
MyTable.Rows.Add(dr);

However this is one of the endless posibilities.

Cor
 
Back
Top