created datatable,datatable1,datarow in memory.
for (int i = 0; i < dt.Rows.Count; i++)
{
string strName = dt.Rows[i]["name"].ToString();
string value = strName;
dt1.Columns.Add(strName);
dr.SetField(i, strName);
}
dt1.Rows.Add(dr);
if (dt1 != null)
{
DetailsView1.DataSource = dt1;
DetailsView1.DataBind();
}
}