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
380
Databinding Issue during first time load
posted

Hello,

        I am struck with a databinding issue. All the controls in my form are Infragistics controls. My problem is the form takes a lot of time to load. Using a profiler I found that the overall time taken for binding the 40 odd controls in the form is taking 4 secs, during the first time load. If I close the form and re-open it, the binding takes less than 1/10th (around 350ms). 

        Dim oBinding As Binding
        oBinding = New Binding(PropertyName, dataSource, dataMember)
        AddHandler oBinding.Format, AddressOf Format
        AddHandler oBinding.Parse, AddressOf Parse

        DisplayObject.DataBindings.Clear()
        DisplayObject.DataBindings.Add(oBinding)

Any help is highly appreciated .

 -Saravanan

 

Parents
No Data
Reply Children