Selectall

We Share What We Get

  • Archives

Copy selected row(s) from one data table to another

Posted by selectall on July 2, 2009

DataTable copydtstud = dtstud.Clone();
DataRow newRow = copydtstud.NewRow();
newRow.ItemArray = dtstud.Rows[1].ItemArray;
copydtstud.Rows.Add(newRow);

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>