I am using WebDataGrid inside WebExplorerBar(wpShare). i need to specify datasource for this grid and bind it. In the previous version below code was used.
UltraWebGrid1.DataSource = shares.Tables[0]; UltraWebGrid1.DataBind();
Equivalent of this is? Tried this... Not working. Help me.
WebDataGrid grid = new WebDataGrid();
grid = (WebDataGrid)this.wpShare.Templates[0].FindControl("UltraWebGrid");
grid.DataSource = shares.Tables[0];
grid.DataBind();
Thank you,
Hello,
believe you may refer to the following resources:
WebExplorerBar structure and accessing its controls in code behind
WebExplorerBar used with user control
WebExplorerBar controls within Template have disappeared
I have already visited those posts. But did not find any solution.