hi im trying to copying specific record from one datatable to another datatable i used below code
public System.Data.DataTable selectspecificdatarow(System.Data.DataTable dtg, int count, int startindex)
{
System.Data.DataTable dtn = dtg.Clone();
for (int i =startindex; i < count; i++)
{
dtn.ImportRow(dtg.Rows[i]);
}
return dtn;
}
its taking too long time in cloneing is there any better way to do this task which is Time effecent