tags:

views:

437

answers:

1

Hi,

ds = (DataSet)Session["Details"];
DataTable dt = ds.Tables[0];

DataTable temp = dt.Clone();
dt.Rows.Add(ds.Tables[0].Select("ID =" + ID));

Error message:Unable to cast object of type 'System.Data.DataRow' to type 'System.IConvertible'.Couldn't store <System.Data.DataRow> in Date Column. Expected type is DateTime.

can anybody help me please.

+1  A: 

ImportRow is designed for this kind of scenarios only, so check it out. I have used it manytimes for such requirements.

Ramiz Uddin
Thank you very much.Its working...:)
You are welcome.
Ramiz Uddin