Assign: Unable to cast object of type 'System.Double' to type 'System.String'

Hi all,
image
image
Getting this error in Dt1. How to resolve this issue. Please guide me on this.

you can try by incorporating a toString() when fetching the value.

Just share with us the details of the used statement. thanks

Hi @ppr,
Dt1.AsEnumerable().GroupBy(Function(a) a.Field(Of String)(“SD Order”)).Select(Function(b) b.First).CopyToDataTable()
Please look in to it.

try by changing the part to:
a("SD Order").toString()

@ppr, thanks for helping…

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.