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

TAdvStringGrid
Using the grid gallery picker at runtime

This code snippet demonstrates how you can invoke the TAdvStringGrid gallery picker at runtime:
uses
  AsgGallery;

procedure TForm1.Button1Click(Sender: TObject);
var
  gg: TGridGallery;
begin
  gg := TGridGallery.Create(Application);
  if gg.ShowModal = mrOK then
    AdvStringGrid1.LoadVisualProps(gg.GalleryFile);
  gg.Free;
end;