cyprus106
Programmer
- Apr 30, 2001
- 654
I've got this database connection and everything works great in it but I needed a drop down box for one of the fields in the table. I used DBComboBox and set the DataSource and DataField properties accordingly and when I connected to the database and dropped down the box it shows the items I want it to show, thanks to this code:
while (!Table1->Eof)
{
ComboBox->Items->Add(Table1->FieldByName("Name"->AsString);
Table1->Next();
}
But when I click to select one of the items, it disappears. I cannot select an item! I tried checking the OnClick and OnChange events but neither even fired up. What's the problem?!? Cyprus
while (!Table1->Eof)
{
ComboBox->Items->Add(Table1->FieldByName("Name"->AsString);
Table1->Next();
}
But when I click to select one of the items, it disappears. I cannot select an item! I tried checking the OnClick and OnChange events but neither even fired up. What's the problem?!? Cyprus