linq dynamic order by descending code example Example: linq dynamic order by descending myDataSource.OrderBy(columnName + " descending");