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
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