Table of Contents

TTMSFNCDataGrid.AutoSizeColumns Method

Resizes all columns to fit their widest content.

API unit family: TMSFNCDataGrid Declaring type: TTMSFNCDataGrid Inherited from: TTMSFNCCustomDataGrid

Syntax

procedure AutoSizeColumns(const AMode: TTMSFNCDataGridAutoSizeMode = gamAllCells; const APadding: Integer = 5);

Parameters

Name Description
AMode Determines which cells are measured.
APadding Extra padding in pixels added beyond each column's measured content width.