Where Are We?


Data binding is the act of connecting a control to a data source. Binding lets you create an association between controls and data sources to keep a control and a data source in sync automatically. The control can be simple, like a TextBox or a ListBox, or full-featured , like the DataGrid. If the data source is an item data source, either it's an object having zero, one, or more public properties or you need a conversion to the data type to properly bind to what the control needs. A data source can also be a list data source, in which case it's a list of objects that can be shown one at a time (when simply bound) or all at once (when complexly bound). Simple binding requires no support from the control itself and allows any number of control properties to be bound to any number of data sources. Complex binding requires support from the control but allows the control greater flexibility in the way it interacts with the data source. For example, it can show multiple items from a list or show multiple columns from a table (or multiple properties from an object).



Windows Forms Programming in Visual Basic .NET
Windows Forms Programming in Visual Basic .NET
ISBN: 0321125193
EAN: 2147483647
Year: 2003
Pages: 139

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net