Presentation is loading. Please wait.

Presentation is loading. Please wait.

Creative Databinding With Delphi 8 for .NET

Similar presentations


Presentation on theme: "Creative Databinding With Delphi 8 for .NET"— Presentation transcript:

1 Creative Databinding With Delphi 8 for .NET
Creative Databinding, a short tutorial on how to bind your object model to you GUI using the .NET framework databinding technology.

2 Databinding Overview Simple Binding
The binding of a control to a public property of a class Complex Binding The binding of a control to a class that supports a list Specifically the list object must support the IList interface.

3 Databinding Binding Managers
Currency Manager Simple and Complex Binding Uses Interfaces or reflection to bind Property Manager Simple Binding Uses reflection to bind

4 Databinding Dataflow

5 Sample Code

6 Databinding Collections
Must Implement IList Most convenient to inherit from CollectionBase Must implement a default Array property called Item Member class properties must be published

7 Databinding Navigating the collection
CurrencyManager Position, read and write, so can increment and decrement Current, contains the selected object Refresh, update the bound component.

8 Databinding Showing changes
The cheats way – Currency Manager, refresh IBindingList Change Notification Automatic Addition of Items Automatic Removal of Items In place Editing Searching Sort

9 Databinding Simple binding
2 way, but there is a trick to it Implement a propertynameChanged event Binding class allows us to provide custom parsing and formatting.

10 Databinding Thanks to References


Download ppt "Creative Databinding With Delphi 8 for .NET"

Similar presentations


Ads by Google