I am writing a form which will be used as a monitoring display on a
heavily-loaded system. Most controls are logically linked to elements
in arrays. While I can set the .text properties of those controls
directly with a programatic assignment, I've contemplated using data
binding to do so.
Clearly data binding is the way to go for more complex associations, but
my application is rather simple (no actual database or ADO.net
connections) and will be refreshing almost continuously. . . and code
efficiency is a major concern.
Which would be more efficient, manually setting the .text properties, or
using data bindings and having the refresh happen automatically?
My hunch is that doing it all directly will be more efficient, if not as
elegant. (Plus, part of me wants to avoid dealing with data bindings,
as I've never worked with them before.)
Thoughts?
Joe Newster - 20 Dec 2004 20:27 GMT
UnnamedIdiot,
I don’t have a definitive answer for you but my "thoughts" on this coincide with yours. Rather than setting up some sort of binding mechanism, I believe doing it pragmatically would be more efficient. It seems to me there would be less overheard. I do not believe it would be more elegant even if things were "more complex". But I am biased, check ut my "Data Access and binding" thread in the WinForms Forum (I meant to post it here) I’m curious as to your thoughts on it.
Joe