Questions That Should Be Asked More Frequently

Q

Should I rely on data binding in an application that I plan to distribute?

A

I rely on data binding when I build the user interface for an application. It lets me develop the basic user interface quickly with a small amount of code. Once I’m comfortable with the layout of the user interface and the schema of the data that the application uses, I consider whether to continue relying on data binding. If I need more control than I can achieve using data binding, or if I decide that relying on data binding will not save time in completing the application, I replace the data-binding functionality with my own code.

You’ll notice that step 11 in the chapter’s main sample application still relies on a bound ...

Get Programming Microsoft® ADO.NET 2.0 Core Reference, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.