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