TBaseColumnEh.Checkboxes Property

Specifies whether need to show checkboxes instead of text.

property Checkboxes;

Checkboxes automativcaly true for boolean field. To show checkboxes for non boolean fields fill first line of KeyList that corresponds to the checked state of the checkbox, second line - non checked state, and set Checkboxes to True. Line of KeyList can represent more than one value in a semicolon-delimited list of items. 


DBGridEh1.Columns[1].KeyList.Strings[0] := 'True;Yes;On';
DBGridEh1.Columns[1].KeyList.Strings[1] := 'False;No;Off';


For boolean field not need to fill keyList.

Copyright (c) 1998-2013. All rights reserved.
What do you think about this topic? Send feedback!