467,906 Members | 1,604 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,906 developers. It's quick & easy.

Sorting and Paging a Custom Gridview

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?
Dec 29 '07 #1
  • viewed: 1639
Share:
1 Reply
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
"mm*********@gmail.com" wrote:
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?
Dec 30 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by needin4mation | last post: by
1 post views Thread by tfsmag | last post: by
5 posts views Thread by yefei | last post: by
reply views Thread by Roy | last post: by
4 posts views Thread by =?Utf-8?B?R2VyaGFyZA==?= | last post: by
1 post views Thread by John A Grandy | last post: by
reply views Thread by =?Utf-8?B?QVZM?= | last post: by
reply views Thread by =?Utf-8?B?R3JlZw==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.