This example demonstrates how to create a GridView
descendant that shows detail records in Server Mode. In this example:
- Set the GridControl's ShowOnlyPredefinedDetails property to true.
- Add detail levels to the GridControl using the LevelTree.
- Specify an instance of the
MyGridView
class for each level and set theMyGridView.VirtualMasterDetailMode
property toMaster
orDetail
. The child list for detail views is created at runtime using events. Read the following help topic for additional information: Master-Detail: Using Events.
- Form1.cs (VB: Form1.vb)
- MyGridControl.cs (VB: MyGridControl.vb)
- PersistentClasses1.cs (VB: PersistentClasses1.vb)
- Large Data Sources: Server and Instant Feedback Modes
- Master-Detail Relationships
- Working with Master-Detail Relationships in Code
(you will be redirected to DevExpress.com to submit your response)