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
Maybe not the databinding is the problem. It might be the number of Infragistics dlls that need to be compiled by the JIT compiler.You can find the discussion and some solutions here: http://forums.infragistics.com/forums/p/9103/36009.aspx
Hope this helps,
Emanuel
Thats an interesting point, but unfortunately I am still facing the issue after using NGEN.
I don't think that NGEN will eliminate the initial load issue since the DLLs still have to be loaded into memory. NGEN will simply reduce this time by pre-compiling the assemblies. A splash screen might be a good approach to mask this initial load time, as suggested in the other thread. I don't see how binding could be the culprit, especially as subsequent binding is performant.
-Matt