Multiple choice technology web technology

Which response is faster to sort the data in datagrid?

  1. DataView

  2. SqlQuery

  3. Stored procedure

  4. DataTable

Reveal answer Fill a bubble to check yourself
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.