Overview
TeeGrid can display and edit different kinds of arrays using RTTI (Runtime Type Information). This provides automatic column generation from your data structures.Array of Records
The most common use case is displaying an array of records:Array of Simple Types
Array of Integer
Array of Float
Array of String
Array of Objects
Complete Example from Demos
FromUnit_Array.pas in the VirtualData demos:
Key Concepts
Automatic Column Generation
TeeGrid uses RTTI to automatically:- Detect all public fields and published properties
- Create columns with appropriate editors (string, numeric, date, boolean)
- Handle nested records (creates sub-columns)
- Format data appropriately (dates, floats, etc.)
Sub-Records
Nested records are automatically expanded:Data Formatting
Features Demonstrated
- Array of simple types (Integer, Single, String)
- Array of records with nested structures
- Array of object instances
- Automatic column generation via RTTI
- Custom data formatting
Next Steps
- Learn about List Binding for TList<T>
- Explore Custom Editors for cell editing
- See Custom Sorting to enable sorting
