RAD Studio for Microsoft .NET
ContentsIndex
PreviousUpNext
Using the DB Web Control Wizard

The DB Web Control Wizard helps you create a data-aware web control based on a standard web control.

Note: DB Web Controls (Borland.Data.Web namespace) are being deprecated in 2007. You should use standard Web controls instead.

To start the DB Web Control Wizard

  1. Choose FileNewOtherDelphi for .NET ProjectsDB Web Control Library. This displays the New DB Web Control Wizard.
  2. Enter a name for the control in the Control Name textbox.
  3. Select Bind to DataTable. This informs the wizard to add to the control file code that implements IDBWebDataLink. This interface defines the means to access data source and table information.
  4. Select Bind to DataColumn if you want to bind to a column, for instance, if your control supports a single type of data. This informs the wizard to add to the control file code that implements IDBWebColumnLink. This interface defines the means to access a column in the table accessed by way of IDBWebDataLink.
  5. If you select Bind to DataColumn and your control is one of the lookup controls, such as a listbox, radio button group, or check box control, and you want the new control to be a lookup control also, check the Supports Lookup check box. This informs the wizard to add to the control file code that implements IDBWebLookupColumnLink. This interface defines the means to access the lookup table, the text field and value field of the column accessed by way of IDBWebColumnLink.
The DB Web Control Wizard creates a template file and displays it in the Code Editor. You then modify this file to inherit from a specific DB Web control.

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!