sort datatable based on column values c# code example Example: sort datatable c# Datatable.DefaultView.Sort = "Preferance ASC";