| DB PROPERTIES VIEW TUTORIAL |
Home
> Articles
> PropertiesView |
 |
| Requirements: PropertiesView 2.4b or newer |
| See Also: Work
with PropertiesView in Design-time , Work
with PropertiesView in Run-time |
 |
Headlines:
1. Introducing
DBPropertiesView is version of PropertiesView extended with
DB support. Work with DBPropertiesView is completely same as with PropertiesView
except:
- 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,
TQuery, TADOTable...)
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).
3. Conclusion
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 support@bergsoftware.net
|