JVCL Help:TJvDBGrid.OnCheckIfBooleanField
From Project JEDI Wiki
Jump to navigationJump to searchJVCL Help: TJvDBGrid.OnCheckIfBooleanField Event
[+] TJvDBGrid Events
[+] TJvDBGrid Fields
[+] TJvDBGrid Methods
[+] TJvDBGrid Properties
Search in JVCL Help
Search in all projectsSummary
Determines if grid column will be showed as boolean checked and define values to fields to show as True or False.
Pascal
TJvDBCheckIfBooleanFieldEvent = function (Grid: TJvDBGrid; Field: TField; var StringForTrue: string; var StringForFalse: string): Boolean ofobject;
propertyOnCheckIfBooleanField: TJvDBCheckIfBooleanFieldEvent;
Parameters
Parameters | Description |
StringForTrue | String value for true |
StringForFalse | String value for false |
Grid | Grid fire event |
Field | Field of grid |
Description
Write here a description
Example
function TForm1.MyGrid1IfBooleanField(Grid: TJvDBGrid; Field: TField; var StringForTrue, StringForFalse: string): Boolean; begin inherited; /* Determine string values to show column as true or false (checked or unchecked). You can use custom verifications to determine how to define values for true and false. */ // showing boolean fields if (Field is TBooleanField) then begin Result := True; StringForTrue := 'True'; StringForFalse := 'False'; end // showing fields whether 'T' is True and 'F' is False else if (Field = datasetCustomerActive) or (Field = datasetCustomerTopTen) then begin Result := True; StringForTrue := 'T'; StringForFalse := 'F'; end // non True/False fields else Result := False; end;
About
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page