G
Gani tpt
Guest
How to assign list value to data row field..?
DataRow DataReport = EmpReport.NewRow();
List<string> EmpID = new List<string>();
EmpID.Add("10001");
EmpID.Add("20001");
foreach (var row in rows)
{
DataReport["Empid"] = EmpID; // I want to assign all the Emp id into DataReport["Empid"]
}
???????
Continue reading...
DataRow DataReport = EmpReport.NewRow();
List<string> EmpID = new List<string>();
EmpID.Add("10001");
EmpID.Add("20001");
foreach (var row in rows)
{
DataReport["Empid"] = EmpID; // I want to assign all the Emp id into DataReport["Empid"]
}
???????
Continue reading...