Wednesday, August 20, 2008

How to copy a row within same table ?

If you want to copy a row in a datatable to the same table you can use ImportRow.
Example :
Suppose a DataTable dtUser has some rows and you want to add another row from the same table.
dtUser.ImportRow(dtUser.Rows[0]);

No comments: