|DB PROPERTIES VIEW TUTORIAL
|Requirements: PropertiesView 2.4b or newer
|See Also: Work
with PropertiesView in Design-time , Work
with PropertiesView in Run-time
DBPropertiesView is version of PropertiesView extended with
DB support. Work with DBPropertiesView is completely same as with PropertiesView
- New property DataSource
- FieldName property for each Item
Work with DBPropertiesView is very similar to any DB component.
You need to set DataSource property to some
TDataSource component on Form. As usual, DataSource
need to be connected to some DataSet (TTable,
2. Set FieldName property for Item
After DBPropertiesView is connected to DataSource,
we can start with adding and customizing our Items.
In DBPropertiesView each Item have FieldName
property. This property point to TField inside
TDataSet with this name. After DataSet
is activated, Item will display content of this Field.
As can be seen in Image, some Items may have empty FieldName
property and this Items will act as normal Items in normal PropertiesView
(you can set MapProperty, set Value
property by yourself...). This can be seen in DBPropertiesView Demo Project
(in demos\properties\ subfolder).
Work with DB-Aware version of PropertiesView is same as work in "normal"
version of this component. You can chose Items you want to connect with
DataBase and which Items not. TDBPropertiesView is descendant of TPropertiesView
and any new feature in TPropertiesView will be automaticaly added to DB
version of component.
if you have some comments please send us email to firstname.lastname@example.org