Hier een stuk van de TNiceGrid definitie:
Code:
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
procedure BeginUpdate;
procedure EndUpdate;
procedure Clear;
property Cells[X, Y: Integer]: string read GetCell write SetCell; default;
property Objects[X, Y: Integer]: TObject read GetObject write SetObject;
property ColWidths[Index: Integer]: Integer read GetColWidths write SetColWidths;
procedure EnsureVisible(X, Y: Integer); overload;
procedure CutToClipboard;
procedure CopyToClipboard;
procedure PasteFromClipboard;
function GetHitTestInfo(X, Y: Integer): TGridHitTest;
function HeaderCellsCount: Integer;
function HeaderCells(I: Integer): THeaderInfo;
property Col: Integer read FCol write SetCol;
property Row: Integer read FRow write SetRow;
property SelectArea: TRect read FSelectArea write SetSelectArea;
procedure DeleteRow(ARow: Integer);
procedure InsertRow(ARow: Integer);
function AddRow: Integer;
property HorzOffset: Integer read FHorzOffset write SetHorzOffset;
property VertOffset: Integer read FVertOffset write SetVertOffset;
function MergeCells(const X1, Y1, X2, Y2: Integer; ACaption: string): TMergeCell;
procedure ClearMergeCells;
published
property Enabled: Boolean read FEnabled write SetEnabled default True;
property ColCount: Integer read GetColCount write SetColCount;
property RowCount: Integer read FRowCount write SetRowCount default 5;
property AutoAddRow: Boolean read FAutoAddRow write FAutoAddRow default False;
property AutoFillDown: Boolean read FAutoFillDown write FAutoFillDown default False;
property AutoFillRight: Boolean read FAutoFillRight write FAutoFillRight default False;
property DefRowHeight: Integer read FDefRowHeight write SetDefRowHeight default 18;
property DefColWidth: Integer read FDefColWidth write SetDefColWidth default 80;
property Flat: Boolean read FFlat write SetFlat default True;
property Color: TColor read FColor write SetColor default clWindow;
property AlternateColor: TColor read FAlternateColor write SetAlternateColor default clWindow;
property GridColor: TColor read FGridColor write SetGridColor default clBtnFace;
property ShowGrid: Boolean read FShowGrid write SetShowGrid default True;
property HeaderLine: Integer read FHeaderLine write SetHeaderLine default 1;
property HeaderColor: TColor read FHeaderColor write SetHeaderColor default clBtnFace;
property HeaderLightColor: TColor read FHeaderLightColor write SetHeaderLightColor default clBtnHighlight;
property HeaderDarkColor: TColor read FHeaderDarkColor write SetHeaderDarkColor default clBtnShadow;
property HeaderFont: TFont read FHeaderFont write SetHeaderFont;
property FooterFont: TFont read FFooterFont write SetFooterFont;
property SelectionColor: TColor read FSelectionColor write SetSelectionColor default $00CAFFFF;
property FitToWidth: Boolean read FFitToWidth write SetFitToWidth default False;
property AutoColWidth: Boolean read FAutoColWidth write SetAutoColWidth default False;
property ReadOnly: Boolean read FReadOnly write SetReadOnly default False;
property Columns: TNiceColumns read FColumns write SetColumns;
property GutterKind: TGutterKind read FGutterKind write SetGutterKind default gkBlank;
property GutterWidth: Integer read FGutterWidth write SetGutterWidth default 20;
property GutterFont: TFont read FGutterFont write SetGutterFont;
property GutterStrings: TStrings read FGutterStrings write SetGutterStrings;
property ShowFooter: Boolean read FShowFooter write SetShowFooter;
property OnDrawCell: TOnDrawCellEvent read FOnDrawCell write FOnDrawCell;
property OnDrawHeader: TOnDrawHeaderEvent read FOnDrawHeader write FOnDrawHeader;
property OnDrawGutter: TOnDrawHeaderEvent read FOnDrawGutter write FOnDrawGutter;
property OnDrawFooter: TOnDrawHeaderEvent read FOnDrawFooter write FOnDrawFooter;
property OnFilterChar: TOnFilterChar read FOnFilterChar write FOnFilterChar;
property OnHeaderClick: TOnHeaderClick read FOnHeaderClick write FOnHeaderClick;
property OnGutterClick: TOnGutterClick read FOnGutterClick write FOnGutterClick;
property OnCellChange: TOnCellChange read FOnCellChange write FOnCellChange;
property OnCellChanging: TOnCellChanging read FOnCellChanging write FOnCellChanging;
property OnColRowChanged: TOnColRowChanged read FOnColRowChanged write FOnColRowChanged;
property OnInsertRow: TOnRowEvent read FOnInsertRow write FOnInsertRow;
property OnDeleteRow: TOnRowEvent read FOnDeleteRow write FOnDeleteRow;
property OnCellAssignment: TOnCellAssignment read FOnCellAssignment write FOnCellAssignment;
property Font;
property Anchors;
property Align;
property BevelKind;
property BorderStyle default bsSingle;
property BevelOuter default bvNone;
property BevelInner;
property TabOrder;
property TabStop default True;
property Tag;
property OnClick;
property OnDblClick;
property OnMouseDown;
property OnMouseMove;
property OnMouseUp;
property OnKeyPress;
property OnKeyDown;
property OnKeyUp;
property PopupMenu;
Bookmarks