how to sort data table values in c# code example Example: sort datatable c# Datatable.DefaultView.Sort = "Preferance ASC";