Friday 22 August 2014

linq query to sort in c# datatable

var Rows = (from row in dt.AsEnumerable()
                        orderby row["Parameter Type"] ascending
                        select row);
            DataTable dataTableS = Rows.AsDataView().ToTable();

No comments:

Post a Comment