How to sort a datatable by two columns?

Hi @tomato25
Kindly try with this query
datatablevariable = From x In datatablevariable.AsEnumerable() Order By convert.Tostring(x(“Location)”),convert.ToString(x(“Month”)) Select x).CopyToDataTable

For more info on this
Sort Excel by multiple column - #5 by Vijay_Tulsalkar

Cheers @tomato25

12 Likes