C# . net+ datatable.importrow
hi,i wnat to impoet rows from a datatable but not affecting tae datatable.
can i perform datarow copy or clone?
thanks
//Fill the datatable before using the sample code
datatable dtNodeGridLoadFiles = new datatable();
foreach (DataRow drOnGrid in dtOnGrid.Rows) {
if ((drOnGrid != null)) {
if (drOnGrid .Length > 0) {
dtNodeGridLoadFiles.ImportRow(drOnGrid);
}
}
}