You might consider adding a BindingSource and see if that has any
impact.
What you do is bind the binding source to the data source, then bind the
controls to the binding source. For example:
myBindingSource.DataSource = myDataSet.Tables("Customers")
this.[TextControl].DataBindings.Add("Text", myBindingSource,
"idCompany")
When you change the dataset behind the bindings, the Binding Source
handles the update of the controls separately. This might happen a lot
quicker using a Binding Source than it does without one, because it
provides some glue in the middle.
It's free to try it. If it works, let us know.
Robin S.
Ts'i mahnu uterna ot twan ot geifur hingts uto.
-----------------------------------------------
No, the code is exactly the same as in Vs2003.
There´s one method which bind each control after initializecomponent
like:
this.[textControl].DataBindings.Add("Text", DataView,"idCompany")
When the user look for new data, I call the Clear and Merge methods.
"RobinS" <RobinS@NoSpam.yah.none> escribió en el mensaje
Are you using a Binding Source with your data bindings?
Robin S.
---------------------------
Hello again.
Last night I've been testing the process step by step and I?ve found
that if I dont do the Databinding process
with the text controls (nor the grid) the Clear() and Merge() methods
runs as faster as in the Vs2003 model.
The problem must be in the binding of the textbox controls but I dont
know if there are changes in framework 2.0. to make a slower
databinding. in applications.
Thanks
"Patrick Steele" <patrick@mvps.org> escribió en el mensaje
Thanks for your quick response.
Both of them are in release mode and outside VS.Net IDE.
Armando
Arggh... Hmmm.. And they are both accessing the same dataset,
against
the same database? Sorry, I'm at a loss as to what could be causing
such a noticeable slowdown.
Have you noticed this on more than one machine?