2017-03-06 20 views

答えて

0

FillDataSource = BindSourceDB1 FillValueFieldName = 'value' // A and I would be in this field FillDisplayFieldName = 'name' // Active and Inactive would be in this field

How to get Item.LookupData and SelectedValue (as integer) of an FMX TComboBox at runtime?

+0

返信用のおかげで、しかし、私のコンボボックス内のデータは、フォームが作成されたとき、私はそれらを手動で追加し、データソースから来ていません。 ComboBox.Items.Add( '')を使用しています。 –

+1

その場合は、TFDMemTableを作成し、マニュアル項目をTFDMemTableに入れることをお勧めします。次に、FillDataSourceにバインドすることができます。 – FMXExpress

関連する問題