ComboBoxControl select none

serifelsenserifelsen Unknown
edited 6:18PM in FastReport 4.0
Hi

I am using combobox in the report form for getting parameters from user.

This combobox is dynamic (i banded it to the datacolumn). As default i set combobox itemindex as -1(none selected) but if user opens combobox, index -1 can not be selected.

Thanks in advance,
Elshan

Comments

  • edited 6:18PM
    Do you mean to giver your user a chance to select NONE from the combo box if he once opened the combo?

    I would avoid this problem in another way:

    1. Put a checkbox above the combo to say "Select something"
    2. Combo would be Enabled := false at design time
    3. Clicking the checkbox would change Enabled flag of the combo
    4. Even if user selected anything within the combo he'd able to give up just with uncheck the checkbox
    5. On BitnBtnClik I would first test if "select something" is checked, and if so I would see what is selected in the combo

    Mick

Leave a Comment