RE: How to replace [...] in DataGrid when doing custom paging?

From: Daniel Walzenbach (daniel.walzenbach_at_newsgroup.nospam)
Date: 03/22/05


Date: Tue, 22 Mar 2005 04:23:01 -0800

Hi Steven,

my problem simply is that I don’t like the approach to get a bunch of data
(e.g. 100000 rows) bind them to a grid which display some rows (e.g. 20 rows)
and throws away the rest. I therefore wrote a sp which returns only the data
I need. For this to work the sp has to know which page will be displayed.
Question is now how to translate […] to the page number?

Best regards,

   Daniel

"Steven Cheng[MSFT]" wrote:

> Hi Daniel,
>
> Thanks for your followup. Yes, the sample code I provided in the former
> message just added two addiontal LinkButtons in the Grid's Pager. In fact,
> it just demonstrate how to access the DataGrid's Pager section so as to do
> some customzation. As for manually expand those ........ links, I don't
> think there has any simple means, if you do need to remove them or manually
> display all the existing page indexes, we may need to manually remove those
> exisint items and add our own linkbuttons. Or otherwise, we just completely
> remove all the existing controls in the Pager TablCell and replace them
> with our own paging UI .
>
> How do you think?
>
> Please feel free to post here if you have any questions.
>
> Thanks & Regards,
>
> Steven Cheng
> Microsoft Online Support
>
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
>