1 / 10

Creative Databinding With Delphi 8 for .NET

Creative Databinding With Delphi 8 for .NET. 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.

brandyd
Download Presentation

Creative Databinding With Delphi 8 for .NET

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Creative DatabindingWith Delphi 8 for .NET

  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 • http://www.codeproject.com/vb/net/databindingconcepts.asp • http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q313482 • http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnadvnet/html/vbnet02252003.asp

More Related