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