How to give name to column and fill data in row in Tgrid created at runtime; (Delphi)

  

I am new to Delphi Firemonkey using Embarcadero® RAD Studio 10 Seattle. I create at runtime a Tgrid. How can i give name to column and fill data in row ? My code is below.

procedure TForm1.Button1Click(Sender: TObject);
var
Grid : TGrid;
begin
Grid := TGrid.Create(Form1);
Grid.Visible := True;
Grid.Parent := Form1;
Grid.Align := Grid.Align.alClient;
Grid.RowCount := 5;
end;

Comments are closed.