How to orderby on a data table


I am trying to orderby the data table based on 3 columns. Could you please help me which activity to use?

@Srini84 @loginerror @prasath17 @mahesh.kumar … Anyone could give me a solution.


Check below expression
(From x in dt.AsEnumerable() Order By convert.ToString(x(“Column1”)),convert.ToInt32(x(“Column2”)),convert.ToString(x(“dept”)) Select x).CopyToDataTable

Output tested as below

Hope this helps you


@Arabinda_Das Use Select Method as below