help

help

Old forum URL: forums.lhotka.net/forums/t/10106.aspx


DanielK posted on Friday, February 25, 2011

hey guys, I was trying to navigate on the pages of my grid control and i wrote on my "GridView3_PageIndexChanging" function this

protected void GridView3_PageIndexChanging(object sender, GridViewPageEventArgs e)
        {
            GridView gridView = frmVBranch.FindControl("GridView3") as GridView;
            gridView.PageIndex = e.NewPageIndex;
            gridView.DataBind();
        }

but it's populating this error

Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.

any one with any idea

thanks

Daniel

Copyright (c) Marimer LLC