in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

C1DockingTab and DataBindings.Add slow

Last post 05-13-2008 2:25 PM by TDukek. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 05-10-2008 12:31 AM

    C1DockingTab and DataBindings.Add slow

    My application is starting up very slowly. Using a perfomance profiler, I've finally narrowed down the problem.

    I have a form with a C1DockingTab. The tab contains numerous data bound fields, bound to a few different BindingSource(s). Each BindingSource is bound to either a C1DataSet/DataTable or a DataSet/Table.

    With the profiler I noted that a lot of time was spent in the designer code for InitializeComponent in the Controls.Add(the tab).

    After trying different things, I pulled all the databinding out of the designer code into a separate sub called after InitializeComponent.

    I finally found that the first simple databinding line i.e. <control>.DataBindings.Add(...) for the tab is 20 seconds! I shifted databinding order around and found it is always the first, thus independent of BindingSource. I also found that a System.TabControl does not have this problem.

    Has anyone else seen this?

    I'd really like to use the C1DockingTab but not at this cost.

    I am currently using version 2.0.20072.19209

  • 05-12-2008 9:56 AM In reply to

    Re: C1DockingTab and DataBindings.Add slow

    Hi,
     
    I would suggest you to test your application with the latest build of C1Command for .Net 2.0. The build is available for download at the following link:
     
     
    If the issue still persist then please post a stripped down sample which reproduce the behavior. It will helps us in narrowing down the issue.
     
    Regards,
    John Adams
     
    <TDukek> wrote in message news:204749@10.0.1.98...

    My application is starting up very slowly. Using a perfomance profiler, I've finally narrowed down the problem.

    I have a form with a C1DockingTab. The tab contains numerous data bound fields, bound to a few different BindingSource(s). Each BindingSource is bound to either a C1DataSet/DataTable or a DataSet/Table.

    With the profiler I noted that a lot of time was spent in the designer code for InitializeComponent in the Controls.Add(the tab).

    After trying different things, I pulled all the databinding out of the designer code into a separate sub called after InitializeComponent.

    I finally found that the first simple databinding line i.e. <control>.DataBindings.Add(...) for the tab is 20 seconds! I shifted databinding order around and found it is always the first, thus independent of BindingSource. I also found that a System.TabControl does not have this problem.

    Has anyone else seen this?

    I'd really like to use the C1DockingTab but not at this cost.

    I am currently using version 2.0.20072.19209



    http://helpcentral.componentone.com/cs/forums/p/75213/204749.aspx#204749

  • 05-13-2008 2:25 PM In reply to

    Re: C1DockingTab and DataBindings.Add slow

    The latest build made no difference. 

    I narrowed down the problem. It somehow is caused by the existence of a C1DataSet that I use for designing the form which I was able to find once I stripped down the application. (I would attach the application but your 'Attach' is not working)

    In my BindToDataSet subroutine, if I dispose of this C1DataSet before I begin adding the DataBindings, I don't have the problem.

    Interestingly enough, in my stripped down application, I'm not even binding to a C1DataSet but am using a DataSet so I really don't understand the conflict. Again, it is only the 1st databinding I do for a control that resides on the C1DockingTab that results in a 20+ second delay.

    R/

    Teresa 

Page 1 of 1 (3 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.