I am working in a very high performance WinForms application, I get some data from a server and show these results in textboxes on my GUI. Would it be better, performance wise, to bind these text boxes to some variables in my code, or to just have in my code something like textbox1.text = data? Or it is just the same
Share
When you’re filling some view with data, performance isn’t your main problem (as a rule).
Bindings are convenient from the perspective of development and further maintenance. They don’t allow you to forget to put value back to data source after user had edit the value. Also, they tightly coupled with data validation. In fact, advanced binding engines, like WPF’s one, makes data binding the only painless way to work with data in GUI.
Binding engine in WinForms is simpler (from the point of features it has), than in WPF, but it is still better, than
textbox1.text = data.