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?
Milosz Skalecki [MCAD] - 30 Dec 2007 00:49 GMT
Hi there,
For paging you don't need to:
http://www.codeproject.com/KB/aspnet/GridViewNeatPaging.aspx?print=true
For sorting you have to intruduce your own members for storing
sortexpression and sortdirection.
Regards

Signature
Milosz
> I've created my own custom gridview that derives from the
> System.Web.UI.WebControls.GridView class and am trying to implement my
[quoted text clipped - 3 lines]
> 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?