Frequently Asked Component Specific Questions

Options

Display all FAQ items

Search FAQ items:


Displaying items 1 to 1 of 1, page 1 of 1

<< previous next >>

TAdvStringGrid
How to change the margin between the cell border and the text

You can control the text offset from top/left corner with the property:
AdvStringGrid.XYOffset
Default, the offset is applied both left and right, to apply the offset only left of the cell, set
AdvStringGrid.XYOffsetTopLeftOnly := true;
This applies to all cells. For example:
AdvStringGrid.XYOffset := point(0,0);
Results in:

AdvStringGrid.XYOffset := point(6,0);
Results in: