| Subject: | Problems with Item 4 of TDBRadioGroup |
| Posted by: | HD (helene.dum…@tourisme.gouv.qc.ca) |
| Date: | Mon, 5 Nov 2007 |
Hi,
I am using D7, with ODAC 5.50. I have a TDBRadioGroup on a form, but I
create the items dynamically(see code below). On the TDBRadioGroup, I have
an OnClick Event. If I click the item 4 right away, the OnClick event is
not fired, but if I click on items 1,2 or 3 and then go to item 4, the
OnClick event is then fired...
Anybody has any idea... I tried to add a fifth item, but still, item 4 does
not fire the OnClick event unless I have clicked another item before...
Please help,
H. Dumas
try
if not dm.qListeVolets.Active then
dm.qListeVolets.Open;
dm.qListeVolets.First;
radVolets.Items.Clear;
while not dm.qListeVolets.Eof do
begin
radVolets.Items.Add(dm.qListeVolets.fieldbyName('descr_volet').AsString);
radVolets.Values.Add(dm.qListeVolets.fieldbyName('id_volet').AsString);
dm.qListeVolets.Next;
end;
finally
radVolets.Columns := radVolets.Items.Count;
end;