开发者

Bind gridview inside of usercontrol from content page

hi is it possible to bind gridview inside of usercontrol from content page, i开发者_Python百科f so how?


Yes, the easiest way would be to expose the bind in the user control and then call it from your page.

//in user control, add this method
public void BindGrid()
{
    gvInnerGrid.DataBind();
}

//on your page
userControl.BindGrid();
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜