Splatify
23rd February 2011, 11:50
Hi all, I have a combobox with two items, male and female.
I query a database, if the current record has gender male, i want set the combobox item to "male". If the current record is gender female I want to set the combobox item to "female".
How do I achieve this? I'm sure it's pretty simple, I just can't seem to get it to work.
Oh and a quick other question. I have another combobox which uses a model. This comobobox automatically shows the first record by default. How do i change it so that the combox is blank to begin with?
I query a database, if the current record has gender male, i want set the combobox item to "male". If the current record is gender female I want to set the combobox item to "female".
How do I achieve this? I'm sure it's pretty simple, I just can't seem to get it to work.
Oh and a quick other question. I have another combobox which uses a model. This comobobox automatically shows the first record by default. How do i change it so that the combox is blank to begin with?