Frequently Asked Component Specific Questions

Options

Display all FAQ items

Search FAQ items:


Displaying items 1 to 1 of 1, page 1 of 1

<< previous next >>

TColumnComboBox
How to copy columns and their items from one TColumnComboBox to another instance

This code performs a fast copy of all columns and their items from one TColumnComboBox to another instance:

begin
  ColumnComboBox2.BeginUpdate;

  ColumnComboBox2.Columns.Assign(ColumnComboBox1.Columns);

  ColumnComboBox2.ComboItems.Assign(ColumnComboBox1.ComboItems);

  ColumnComboBox2.EndUpdate;
end;