HighTechTalks DotNet Forums  

Sorting and Paging a Custom Gridview

ASP.net ASP.net discussions (microsoft.public.dotnet.framework.aspnet)


Discuss Sorting and Paging a Custom Gridview in the ASP.net forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
mmorrison93@gmail.com
 
Posts: n/a

Default Sorting and Paging a Custom Gridview - 12-28-2007 , 11:27 PM






I've created my own custom gridview that derives from the
System.Web.UI.WebControls.GridView class and am trying to implement my
own sorting and paging mechanisms. The GridView class has two private
variables SortExpressionInternal, SortDirectionInternal tat I'd like
to set to specific values, however because the variables are private
i'm not able to access them. Does anyone know of a way to access these
variables from my derived class and set them to the required values?

Reply With Quote
  #2  
Old   
Milosz Skalecki [MCAD]
 
Posts: n/a

Default RE: Sorting and Paging a Custom Gridview - 12-29-2007 , 07:49 PM






Hi there,

For paging you don't need to:
http://www.codeproject.com/KB/aspnet...spx?print=true
For sorting you have to intruduce your own members for storing
sortexpression and sortdirection.

Regards
--
Milosz


"mmorrison93 (AT) gmail (DOT) com" wrote:

Quote:
I've created my own custom gridview that derives from the
System.Web.UI.WebControls.GridView class and am trying to implement my
own sorting and paging mechanisms. The GridView class has two private
variables SortExpressionInternal, SortDirectionInternal tat I'd like
to set to specific values, however because the variables are private
i'm not able to access them. Does anyone know of a way to access these
variables from my derived class and set them to the required values?


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.