TcxCustomGrid Class
The base class for the VCL Data Grid control.
Declaration
TcxCustomGrid = class(
TcxControl,
IcxNavigator,
IcxNavigatorRecordPosition,
IdxSkinSupport,
IcxLockedStatePaint,
IcxLockedStateFontChanged
)
Remarks
The Data Grid allows you to display data as a table and in a variety of other formats. The control has multiple built-in features that allow users to shape and edit data.
Main API Members
The list below outlines key members of the TcxGrid
class that allow you to manage grid Views and levels as well as to customize general layout and appearance settings.
- Create a new grid View (CreateView).
- Access a View by its index (Views).
- Obtain the total number of Views (ViewCount).
- Access the View associated with the active root level (ActiveView).
- Specify the active root level (ActiveLevel).
- Access the collection of root grid levels (Levels).
- Associate the control with a source image list for grid level tab and column header glyphs (Images).
- Customize the appearance of the control, its root level, and level tabs (LookAndFeel, RootLevelOptions, and LevelTabs).
- Refresh content in response to control layout or size changes (LayoutChanged and SizeChanged).
- Respond to control layout changes (OnLayoutChanged).
- Redraw the control (Invalidate).
- Avoid excessive redraw operations during batch appearance and content changes (BeginUpdate, CancelUpdate, and EndUpdate).
- Specify if a user can press Tab to focus the Data Grid control (TabStop).
- Move focus between grid Views (FocusedView).
- Respond to navigation between Views and child levels (OnFocusedViewChanged, OnActiveTabChanged, and OnActiveTabChangedEx).
- Adjust Locked View image appearance settings (LockedStateImageOptions).
- Custom draw the Locked View image (OnPrepareLockedStateImage).
Terminal TcxCustomGrid Class Descendant
Do not use the TcxCustomGrid
class directly. Use the TcxGrid control instead.
Get Started
The following tutorials help you get acquainted with the Data Grid control and its Views:
- Table View
- This tutorial describes how to add a Data Grid control to your application and set up a Table View display style.
- Banded Table View
- This tutorial describes how to add a Data Grid control, specify data connections, and adjust appearance settings in a Banded Table View.
Implements
Inheritance
See Also