Subject Re: [IBO] Checkbox states
Author Luiz Alves
Cagatay,
> Hi to list,
>
> I have problem with checkboxes. The problem is I can not prevent to enter
> checkbox to grayed (null) state. Let me explain my situation :
>
> First I declared a domain on my database as :
> CREATE DOMAIN DMN_BOOLEAN CHAR( 1 ) CHARACTER SET WIN1254
> DEFAULT 'F' CHECK (VALUE IN ('T', 'F')) COLLATE PXW_TURK
>
> and used it in many tables for boolean fields
>
> then in my delphi application in tib_query I defined my boolean fields in
> columnattirubutes property as (suppose that my field's name is
SBT_KUR_VAR)
> :
> SBT_KUR_VAR=BOOLEAN=T,F
>
> and bound a tib_grid to this tib_query. What I am expecting is the
checkbox
> which appears on grid must have only two states : Checked and not checked.
> But I get three sates checked, not checked and null (the grayed one) and
> this is confusing for my users cause they do not know what is the meaning
of
> null and they confuse it with checked state.
>


You can set Required Attribute for the column to True.

Luiz.