Datagrid sorting

Results 1 to 2 of 2

Thread: Datagrid sorting

  1. #1
    Join Date
    Dec 1969

    Default Datagrid sorting

    Is the database requeried when the sort event is raised on a datagrid in an aspx file? Or, does it just sort the dataset and redisplay it? It seems that the sort is taking just as long as querying it from the database with an order by?

  2. #2
    Join Date
    Dec 1969

    Default I would bet...

    ...on a requery.<BR><BR>But why not follow the code? If the sort event is handled in the server, then that&#039;s your answer, isn&#039;t it? I doubt that the server is retaining the contents of the datagrid in memory from one page hit to the next (that would be a good way to make the Web server die an early death). So it must be doing a re-query, in that event.<BR><BR>Maybe time to write your own client-side code to do the sorting?<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts