Friday, April 16, 2010

Always Visible pager header/footer

I put it in PreRender event:

    protected void GridView5_PreRender(object sender, EventArgs e)

    {

        GridView grid = (GridView)sender;

        if (grid != null)

        {

            GridViewRow pagerRow = (GridViewRow)grid.TopPagerRow;

            if (pagerRow != null)

            {

                pagerRow.Visible = true;

            }

        }

    }

 

No comments: