It gave output like this where I sorted my datatable. Doesn’t process the second digit. Please help me.
Hi @hcmgl_ei
How about this expression?
(From d in BuildDt.AsEnumerable Where Not (isNothing(d(1)) OrElse String.IsNullorEmpty(d(1).toString.Trim)) Select v = CDbl(d(1).toString.Trim)).OrderBy(Function (x) x)
d(1) → Column name index
Output
Regards
gokul
Thanks everyone. I selected the data table column “string”. It should be “int32”.
Have you tried with above LINQ expression. It will worked as you need.
Let me know if you have any issue @hcmgl_ei