plz help,
i want to copy some specific rows record from old datatable and add in new datatable as it is.
Thanks in advance........
How to copy specific rows in new datatable from old datatable.
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Mar 22, 2012, 1:39 AM EDT
http://msdn.microsoft.com/en-us/library/system.data.datatable.importrow.aspx
http://www.c-sharpcorner.com/UploadFile/mahesh/ImportRow07092006195427PM/ImportRow.aspx
Gohil JayendrasinhRank #490 · 5K reputationPosted Mar 22, 2012, 3:22 AM EDT
DataTable dt = new DataTable();
//Create Datatable with column you need.
var info = (from a in dtOld.AsEnumerable()
select new
{
// select columen you need
}
)
if (info != null)
{
if (info.Count() > 0)
{
dt = info.CopyToDataTable();
}
}
DA D12 reputationPosted Mar 22, 2012, 8:31 PM EDT
i want to copy data in new datatable dynamically with rows and col. just like as selected specific row copy from old datatable & paste in to new datatable.
thanks to u again....