I've created a DataTable and would like to load it with 30 copies of the same record. I'm trying the following code, but I keep getting an error "The record is already belongs to this table". I'm guessing the drow object is just a pointer and the pointer is getting copied, not the datarow. Any thoughts?
-Jason
VB.NET:
Dim drow As DataRow = LabelDS.Tables(0).Rows.Item(0)
For i = 0 To 29
LabelDS.Tables(0).NewRow()
LabelDS.Tables(0).Rows.Add(drow)
Next