Hi all,
I have an export window which users can access when looking at a page which can contain many grids on different tabs. I want the users to be able to visit the page and click an 'export' button to choose which grid to export data from without needing to click into each tab to show the grid first. At the moment if the user clicks on the export button, every grid is "empty" (the ItemsSource has been set but the HasItems property is false)
I'm guessing this is because the grid is on a tab which is not yet visible and has not actually fired the Loaded event and set itself up.
Is there any way I can query the grid and use the grid.Export functionality without the grid firing it's loaded event, or alternatively, force the grid to load its data (it will work fine with my form as it's bound to Grid.HasItems and should refresh once the data is loaded) without needing to be made visible?
Thanks in advance,
Charles
I have an export window which users can access when looking at a page which can contain many grids on different tabs. I want the users to be able to visit the page and click an 'export' button to choose which grid to export data from without needing to click into each tab to show the grid first. At the moment if the user clicks on the export button, every grid is "empty" (the ItemsSource has been set but the HasItems property is false)
I'm guessing this is because the grid is on a tab which is not yet visible and has not actually fired the Loaded event and set itself up.
Is there any way I can query the grid and use the grid.Export functionality without the grid firing it's loaded event, or alternatively, force the grid to load its data (it will work fine with my form as it's bound to Grid.HasItems and should refresh once the data is loaded) without needing to be made visible?
Thanks in advance,
Charles