Downloads Articles Order Sign In
Welcome to Official Berg Software web site. Twelve years with you! All other websites providing Berg Software source code and content are illegal. We will not support users who use services, or buy products from illegal Berg Software websites. more...
  Home  
  News Archive  
  Components  
  Applications  
  Downloads  
  Order  
  Support  
  About  
 
  Components
  GridView
  DBGridView
  PropertiesView
  SheetView
  Comp. Collection
 
  Applications
  Berg Player
  SMS Mara Gateway
  Domain Binocular
 
 
  Support
  Contact Us
  Support forums
  Articles
 
 
 
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
2. Set FieldName property for Item
3. Conclusion

1. Introducing

DBPropertiesView is version of PropertiesView extended with DB support. Work with DBPropertiesView is completely same as with PropertiesView except:

  1. New property DataSource
  2. 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

 

 

 


 
Copyright © BergSoftware 1996 - 2009. All rights reserved.Contact Us.