Basic Concept
By default, when we need to configure data display in the Grid, such as masks, we add the query fields to the FIELDS EDITOR and create events to apply them.
In RadCORE, you can define ATTRIBUTES and/or MASKS for the fields displayed in the GRID without adding a single line of code or adding the fields to the FIELDS EDITOR of the respective query.
All RadCORE inheritable CRUDs are designed to render attributes in grids, but when creating a specific form, you must follow the guidelines below:
Each grid must have at least the following attribute structure in the "hint" property in the form/frame create event:
[[fieldmasks:grid-resize]]
OnDrawColumnCell Event
The following function must be added to the grid you want RadCORE to render with the dynamic attribute features:
dm_rc.rc_GridDrawCell( TUniDBGrid( sender ) , ACol, ARow, Column, Attribs ) ;
UniFrameReady Event
//[EN] for forms/frames that do not inherit from frmBaseCRUD and contain GRIDS
dm_rc.rc_DBGridUpdateAll( Self , false, false, true);
UniFrameCreate Event
UniDBGrid1.hint := '[[fieldmasks:grid-resize]]';
In the following topic we will see the list of available attributes.
Created with the Personal Edition of HelpNDoc: Create help files for the Qt Help Framework