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
25
Component Order in *.designer.vb file
posted

Hello,

I am using the UltraCalendarInfo control, version: 8.1.20081.1000

Its tied to a UltraMonthViewSingle component.

It appears that the code in the designer.vb file for the UltraCalendarInfo is loading before the data source is available, causing a Inner Exception. If i manually edit the designer.vb file and move it to the bottom of the Initialize Component sub, it runs great. If i make any changes in the design mode to the component and save, it gets repositioned above the data source once again and causes the inner exception.

I know i can bypass the designer and create the component in code, but if i can avoid this i would like to.

Any ideas?

Thanks,

Jennifer

Parents
  • 4133
    Offline posted

    I had a similar problem with the UltraWinGrid.  To get around the problem, I extended the grid class with a boolean that gets set when the InitializeLayout event is fired.  This happens when the datasource is changed.  I put a check in the InitializeRow event that skips out if my boolean is false.  I'm sure you can do somthing similar with the calendar control.

Reply Children
No Data