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
375
cannot find webdatagrid inside webexplorerbar
posted

Hi guys,

I have two webexplorerbar one within another.I try to access webdatagrid in child webexplorerbar.Here is my codind in .cs file:

First I get child bar instance from parent bar:

WebExplorerBar viewPanel = (WebExplorerBar)this.WebExplorerBar1.Groups[0].Items[0].FindControl("WEBGridPanel");

I get instance correctly from the main bar but when I try access to webdatagrid in view panel I am getting null:

WebDataGrid wdd2 = (WebDataGrid)viewPanel.FindTemplateById("gridPanel").FindControl("WebDataGrid2");

Please help me out .

Thanks

Parents Reply Children
No Data