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