Which response is faster to sort the data in datagrid?
-
DataView
-
SqlQuery
-
Stored procedure
-
DataTable
A
Correct answer
Explanation
DataView sorting is performed in-memory after data is retrieved, making it faster for subsequent sorts without additional database round trips. Sorting via DataView uses indexes and doesn't require re-executing SQL queries. This approach is efficient when you need to re-sort data already loaded into the DataGrid.