开发者

Bind gridview inside of usercontrol from content page

开发者 https://www.devze.com 2023-01-07 17:54 出处:网络
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 p

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

精彩评论

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