Using Data Controls
|
Previous Top Next |
· | The type of data you are displaying. You can choose between controls that are designed to display and edit plain text, controls that work with formatted text, controls for graphics, multimedia elements, and so on. Controls that display different types of information are described in Borland DevGuide, Displaying a single record.
|
· | How you want to organize the information. You may choose to display information from a single record on the screen, or list the information from multiple records using a grid. Borland DevGuide, Choosing how to organize the data describes some of the possibilities.
|
· | How (or if) you want to let users navigate through the records of datasets and add or edit data. You may want to add your own controls or mechanisms to navigate and edit, or you may want to use a built-in control such as a data navigator.
|
1. | Place on form (data module) and set up TABSDatabase and TABSTable (TABSQuery) components.
|
2. | Place TDataSource component from the Data Access page of the Component palette on form (data module)
|
3. | Set TDataSource.Dataset property.
|
4. | Set up data control properties, such as DataSource, DataSet and DataField
|