Datatable sorting with respect to particular column value

Maybe better when sharing the sample data with us.

Give a try at

dtSorted =

dtDataVar.AsEnumerable.OrderBy(Function (x) CInt(x("InvoiceNo.").toString.Trim)).CopyToDataTable
2 Likes