Blog Of Sem: Cxgrid master detail ilişkisi

Cxgrid master detail ilişkisi

* Start new application
* Add a CxGrid to the form
* Add a ADOConnection and connect it to my Access Database (*.mdb)
* Add 2 ADOTables and 2 Datasources, connect the 2 datasources to their
ADOTable..
* Set the Connection for the ADOTables to the ADOConnection component
* Set the 'Tablename' property of the ADOTable components to the table
'Master' for ADOTable1 and to 'Detail' for ADOTable2
* Set the 'IndexFieldName' property of both ADOTables to 'ID'
* Set both ADOTables 'Active' property to 'True'
* Create a new 'level' in the grid and add a tableview to it
* Link the first view to Datasource1
* Link the second view to Datasource 2
* Use the 'Create All Columns' option on both levels to add the columns
* Set the 'Detailkeyfield' , 'KeyfieldName' and 'MasterKeyFieldName'
properties for both levels everything to 'ID'

No comments:

Post a Comment