Sorting and Paging a Custom Gridview

Sorting and Paging a Custom Gridview

am 29.12.2007 05:27:36 von mmorrison93

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?

RE: Sorting and Paging a Custom Gridview

am 30.12.2007 01:49:01 von mily242

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
--
Milosz


"mmorrison93@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?
>