Home > Back-end >  Dblookupcomboboxeh display multiple column data to obtain more columns data method?
Dblookupcomboboxeh display multiple column data to obtain more columns data method?

Time:11-10

Dblookupcomboboxeh display multiple columns (3 to 5 column data) when data is how to obtain more columns data method?
I am a 2 column data on dblookupcomboboxeh1. Text and dblookupcomboboxeh keyvalue values for,
But don't know how to do more than 3 column, please advice!

CodePudding user response:

Is there any know player?
Can you get more column value?

CodePudding user response:

Can directly traverse dateset?
Procedure Tform2. Btn1Click (Sender: TObject);
Var
STR: string;
The begin

Dblkcbb1. The DataSource. The DataSet. First;

While not dblkcbb1. The DataSource. The DataSet. Eof do
The begin

Memo1. Lines. The Add (dblkcbb1. The DataSource. The DataSet. Fields. [0] AsString) are identical.
Dblkcbb1. The DataSource. The DataSet. The Next ();

end;

end;

CodePudding user response:

The simplest way is to turn to display fields are joining together into one column of the output to the text

CodePudding user response:

Why EhLib dblookupcomboboxeh controls shows more columns can take less than many column value?
I think there should be a way to get the value of,
Please use in CSDN EhLib plug-in player to help solve the problem,

CodePudding user response:

No one know?

CodePudding user response:

Data are ListSource binding of data set the
DBLookupComboboxEh. ListSource. The DataSet
For example:
DBLookupComboboxEh. ListSource. DataSet. FieldByName (' field 1) AsString
DBLookupComboboxEh. ListSource. DataSet. FieldByName (' field 2.) AsString

CodePudding user response:

reference 5 floor ynquan reply:
no one know?


This method can obtain more columns in the first row, if is a line of this method to reality,
But in practice the data when I choose one of the many lines,
Such as 5 or 10 lines, that is, get more is to choose the column data,

CodePudding user response:

reference line 6th floor day return response:
data in the data set of ListSource binding
DBLookupComboboxEh. ListSource. The DataSet
For example:
DBLookupComboboxEh. ListSource. DataSet. FieldByName (' field 1) AsString
DBLookupComboboxEh. ListSource. DataSet. FieldByName (' field 2.) AsString


This method can obtain more columns in the first row, if is a line of this method to reality,
But in practice the data when I choose one of the many lines,
Such as 5 or 10 lines, that is, get more is to choose the column data,

CodePudding user response:

refer to the eighth floor ynquan response:
Quote: refer to the sixth floor day return reply:

Data are ListSource binding of data set the
DBLookupComboboxEh. ListSource. The DataSet
For example:
DBLookupComboboxEh. ListSource. DataSet. FieldByName (' field 1) AsString
DBLookupComboboxEh. ListSource. DataSet. FieldByName (' field 2.) AsString


This method can obtain more columns in the first row, if is a line of this method to reality,
But in practice the data when I choose one of the many lines,
Such as 5 or 10 lines, that is, get more is to choose the column data,

You choose which line, row, the pointer is pointing to the corresponding data is corresponding to the record,
  • Related