Birkaç satırda canlı bir grid.
Türü belirli sütunlar ekleyin, satırları anahtarla ekleyin ve sonra herhangi bir iş parçacığından güncelleyin. Delphi, C++ Builder ve C# için aynı API.
dotnet add package esegece.sgcGrid.WinForms
C++ Builder ve C# sürümleri
uses
Forms, Classes, Controls,
sgcGrid_Columns, sgcGrid_Data, sgcGrid_VCL;
procedure CreateGrid(aForm: TForm);
var
oGrid: TsgcVCLGrid;
begin
oGrid := TsgcVCLGrid.Create(aForm);
oGrid.Parent := aForm;
oGrid.Align := alClient;
// sütunlar: FieldName, Caption ve DataType
oGrid.Columns.Add('Symbol', 'Symbol');
oGrid.Columns.Add('Price', 'Price', gdtFloat).DisplayFormat := '0.00';
oGrid.Columns.Add('Volume', 'Volume', gdtInteger);
// anahtar başına bir satır, değerler sütun sırasıyla
oGrid.Data.AppendRow('MSFT', ['MSFT', 412.5, 1200]);
oGrid.Data.AppendRow('AAPL', ['AAPL', 228.1, 3400]);
// daha sonra, herhangi bir iş parçacığından: bir anahtarın satırını alan adıyla güncelleyin
oGrid.Data.UpdateRow('MSFT', ['Price', 'Volume'], [413.1, 1350]);
end;