Initializing the TTMSFNCDataGrid.Columns property

TMSFNCDataGrid, I am very excited about this.
I ran the following code to initialize the Columns property.

procedure TForm1.FormCreate(Sender: TObject);
begin
  TMSFNCDataGrid1.Align := alClient;
  TMSFNCDataGrid1.Columns.Clear;
  TMSFNCDataGrid1.ColumnCount := 3;
  TMSFNCDataGrid1.RowCount := 2;
end;

DataGrid_01

The Columns[0].Header and Width values ​​remain default.
The Columns.Clear method cannot delete settings.
How can I delete the Columns property values?

TMSFNCDataGrid.Version is 0.9.0.3.
TMS FNC UI Pack version is 6.0.0.2.

Hi,

Thanks for the feedback.
You can clear the data in the grid by calling

TMSFNCDataGrid1.ClearData;

Do you want to clear all information in the grid? Use

TMSFNCDataGrid1.Clear;

A bit of explanation is required: The Columns collection is not mandatory, it's automatically controlled by the grid, but does not control the data in the grid. The Columns are a means to control how the cells look like. It's possible to just completely ignore the columns and use the grid directly with ColumnCount & Cells properties for example. Clearing the columns will just remove Column information applied to the cells, not the actual cell data itself. Since at designtime, the grid is initialized with a sample, the data is stored inside the grid.

Clearing the columns will just remove Column information applied to the cells, not the actual cell data itself.

All right.
Thanks.