How to assign datatable value to a field in the list
Hi friends,
I am assigning values in the list
{
Name=item.field("name"),
Date=dt.AsEnumerable()
.where(y=>y.field("name")=field("name"))
.Select(x=>x.field("date")).To list()
}
But the value is not assigning to the variable and showing system.datarowLinq...text in the output.
I am getting cannot convert string[] to string
I tried.ToString(),First() and firstorDefault()
But I am unable to assign value Mar-2020 to the variable.
How to get the correct value in the variable?
Navaneeth KrishnanPosted Aug 22, 2020, 9:40 AM
Laxmidhar SahooPosted Aug 22, 2020, 1:10 AM
prasanna pPosted Aug 21, 2020, 7:40 AM
Laxmidhar SahooPosted Aug 20, 2020, 2:00 PM
prasanna pPosted Aug 20, 2020, 12:51 PM
Rajeesh MenothPosted Aug 19, 2020, 10:59 PM