Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
130
Grid Bind inside WebExplorerBar
posted

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,