This is the default behavior for TBooleanField.DisplayValues . Look at the db source:
db.TBooleanField.SetAsString and db.TBooleanField.SetDisplayValues .
If you set TField.DisplayValues := 'Yes;No'; , for example: Y , Ye , Yes will represent True ; N , No will represent False .
You cannot add more values ββto it. If you are not using OnSetText , as suggested by another answer, or use TDbGrid.PickList .
Personally, I would use a CheckBox to represent the value of a logical field on a TDBGrid .
There are many examples on how to do this.
kobik
source share