delphicheckboxdatafield

Delphi Checkbox grayed and checked


I have been working with Delphi for about a month now so I'm relatively new. I have a checkbox that greys out when I change the data field just want to know why that might be?


Solution

  • Your TDBCheckBox is grayed because the value of the datafield assigned to it does not match ValueChecked or ValueUnchecked properties.From documentation

    If the contents of the field matches no string in either ValueChecked or ValueUnchecked, the check box appears gray.