Skip to main content

Overview

TeeGrid provides seamless integration with Delphi’s database components. You can connect it directly to a TDataSource or TDataSet for live data binding with automatic updates.

Basic Database Connection

Using TDataSource

Using TDataSet Directly

Complete Example with ClientDataSet

From the VCL Database demo (Unit_Dataset.pas):

Enabling Column Sorting

TeeGrid supports automatic sorting when clicking column headers:

For ClientDataSet

For FireDAC Datasets

Cleanup

Remove temporary sorting indexes when destroying the form:

Custom Column Rendering

Password Column Example

Automatic Row Heights

Performance with Large Datasets

TeeGrid is optimized for large datasets. From the demo with 10,000 records:
The grid efficiently handles:
  • Virtual rendering (only visible rows are drawn)
  • Smooth scrolling even with thousands of records
  • Instant column sorting

Key Features

  • Direct Database Binding: Connect to TDataSource or TDataSet
  • Automatic Updates: Changes in the dataset reflect immediately in the grid
  • Column Sorting: Click headers to sort (with ClientDataSet or FireDAC)
  • Custom Rendering: Override default rendering for specific columns
  • Navigation: Works with DBNavigator and standard dataset navigation
  • High Performance: Virtual rendering for datasets of any size

Supported Dataset Types

  • TClientDataSet (DataSnap)
  • TFDMemTable, TFDQuery, and other TFDDataSet descendants (FireDAC)
  • Any TDataSet descendant (with basic functionality)

Next Steps