Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm Data Binding / December 2004

Tip: Looking for answers? Try searching our database.

Efficiency of databinding vs. direct assignment. . .

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
UnnamedIdiot - 17 Dec 2004 19:47 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.