Recent

Author Topic: Cannot edit TStringGrid Column title  (Read 161 times)

wytwyt02

  • New Member
  • *
  • Posts: 44
Cannot edit TStringGrid Column title
« on: November 20, 2019, 10:18:37 pm »
Cannot edit the title in the form builder

jamie

  • Hero Member
  • *****
  • Posts: 2174
Re: Cannot edit TStringGrid Column title
« Reply #1 on: November 20, 2019, 10:38:58 pm »
Works for me..

If you Select the TGridColumn up top, then select in properties, Title then Caption you can set the caption.

  In code you basically do the same thing..

 Columns[?].Title.Caption := '/////';

Is that what you needed ?

Number 1 at blue screen app creations!

howardpc

  • Hero Member
  • *****
  • Posts: 3210
Re: Cannot edit TStringGrid Column title
« Reply #2 on: November 20, 2019, 10:40:28 pm »
If you click the ellipsis [...] button of the Columns property, this opens a Columns editor which allows you to add columns.
Having added the columns you want, select one of them in the object tree (the pane at the top of the Object Inspector).
Among the column's editable properties is Title.
Beside the Title property is a small + or chevron icon, which you can click to open its subproperties. One Title subproperty is Caption.

wytwyt02

  • New Member
  • *
  • Posts: 44
Re: Cannot edit TStringGrid Column title
« Reply #3 on: November 22, 2019, 04:41:09 am »
If you click the ellipsis [...] button of the Columns property, this opens a Columns editor which allows you to add columns.
Having added the columns you want, select one of them in the object tree (the pane at the top of the Object Inspector).
Among the column's editable properties is Title.
Beside the Title property is a small + or chevron icon, which you can click to open its subproperties. One Title subproperty is Caption.

you are right, thanks