Re: Paging, Filtering and Sorting

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



thanks for your help folks

The reason I want to use the paging is because of the number of records.
Loading 300k + records can take up some resources.

What I think I'll end up doing is, simply run the modified query each time
against the database, and using the overloaded Fill method for the
dataadapter, only show a chunk at a time in the grid. As the user navigates
through the pages, I'll update the fill method and reflect the changes in
the grid.

I may also set this up with a dataview and compare the performance of the
two approaches.

LDD

"LDD" <largedoubledouble@xxxxxxxxx> wrote in message
news:z8KdnQrUs4i8WyPenZ2dnUVZ_v6dnZ2d@xxxxxxxxxxx
> Hi Folks
>
> I'm trying to determine a way to handle paging, filtering and sorting in a
> datagrid.
> If I choose to filter and sort, I'd like to return a subset. If that
> resultset has more records then the number of rows I'd like to display,
I'd
> like to be able to load pages into the grid.
>
> My question is, do I need to continually hit the db to get the next page
of
> records, or is there another method of doing with the dataset. i.e. load
the
> entire resultset into the dataset and pick up the next block of results as
> neeeded.
>
> thanks folks
>
> LDD
>
>


.



Relevant Pages

  • RE: Lazy Loading Grid Object
    ... I am not looking for paging. ... it loads the first X records and then as you scroll ... It does not try to load the entire table at ... >> screen next to the grid. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Searching in a multipage gridview in an updatepanel is extremely difficult (for me) !
    ... If you are using default paging, ala declarative in ASP.NET, the only records on the server side are the ones you are showing - as well. ... grid, meaning client side JavaScript. ... For intRecordCounter As Integer = 0 To CType ... However, on changing pages, the selection gets lost (setting the ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Lazy Loading Grid Object
    ... Yeah, I realize that I will be doing a "paging" type functionality, but make ... to an xml file and then running the grid from the local xml. ... row count and use to set the size, then when the user clicks on the scroll ... > as such you are going to have to load the whole lot or load it in sections ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Tay Bridge disaster
    ... >load is hardly concentrated at all. ... Paging Mr Archimedes. ... inches above the waterline, so any significant "bulge" in the water ...
    (uk.railway)
  • Re: How to re-select row in a gridview _after_ sorting?
    ... determining on what page the selected data item is. ... If you want a user to select a row, remember the row, and have paging ... and sorting, you will have to do some work on the result set yourself. ... You will also have to store pointers and create the grid results. ...
    (microsoft.public.dotnet.framework.aspnet)