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
295
Layout reset in usercontrol with grid and webbrowser
posted

 Hi, i have a problem with the grid layout when using a webbrowser.

To test the problem you just have to follow the next steps:

  1. Create new windows project
  2. add a usercontrol
  3. add a new dataset and add it a datatable with some columns
  4. add to the usercontrol a wingrid with the datasource of the new datatable created before
  5. set the hidden property of some columns of the grid to true
  6. add the usercontrol to the form1
  7. ... okay, you can see the grid just shows the columns not hidden
  8. add a webbrowser to the usercontrol
  9. refresh form1 and you will see how the hidden columns of the grid become visible
  10. ... that's my problem, 

any ideas why the grid doesn't update the layout when there's a webbrowser in the same custom control??

 

Parents
  • 295
    posted

     .... if i set the visible property of the webbrowser to false and , in the constructor after the InitializeComponent, i set visible = true, then everything is fine, the layout looks ok.

    It seems like there's some refresh event in the webbrowser that shadows some refresh layout event in the infragistics controls.

    version: NetAdvantage 2007 1 CLR2x NET

Reply Children
No Data