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 >>

TMS Advanced Dropdown Controls
Adding Columns and Items in TAdvMultiColumnDropDown

To add Columns and Items in the TAdvMultiColumnDropDown component use the code below:
var 
  it: TDropDownItem; 
begin 
  AdvMultiColumnDropDown1.DropDownAutoWidth := true; 
  AdvMultiColumnDropDown1.Columns.Add.Header := 'Column 1'; 
  AdvMultiColumnDropDown1.Columns.Add.Header := 'Column 2'; 
  AdvMultiColumnDropDown1.Columns.Add.Header := 'Column 3'; 

  it := AdvMultiColumnDropDown1.Items.Add; 
  it.Text.Add('Item 1 at column 1'); 
  it.Text.Add('Item 1 at column 2'); 
  it.Text.Add('Item 1 at column 3'); 

  it := AdvMultiColumnDropDown1.Items.Add; 
  it.Text.Add('Item 2 at column 1'); 
  it.Text.Add('Item 2 at column 2'); 
  it.Text.Add('Item 2 at column 3'); 
end;