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
410
Using WinGrid in a user control
posted

I'm using a WinGrid in a user control, or at least attempting to.  I have a bindig source set in the control and the grid is bound to the binding source.  I have set specific columns and bands to be visible.  I have the NewBandLoadStyle and NewColumnLoadStyle set to Hide.

Everything appears to be fine until I try to use the user control.  When I place the user control on a form, the grid does not show any columns.  If I set the NewBandLoadStyle and NewColumnLoadStyle to Show I see columns, but not the ones I have defined for the grid.  I would expect this if the control reset the datasource, but it doesn't.  I added the grid and datasource direclty to the form and set the same properties and they work fine, its only when using it through a user control that I seem to have an issue.

Can anyone point me in the right direction here?

 

 

Parents
No Data
Reply Children
No Data