1

There is a my vcl application. In form, there is a StringGrid. I want to set column header height but I dont know that how it do. So the questions is: how to set StringGrid column header auto row height because column row width is not certain

1
  • There is no auto row height, that would word wrap a long cell entry into several lines and increase the height of the row correspondingly. You need to do that yourself in your code. Commented Mar 19, 2016 at 10:34

1 Answer 1

6

There is no real column header in a TStringGrid, just a number of fixed rows (default 1).

Just set the height for the row you want with the indexed property TStringGrid.RowHeights

StringGrid1.RowHeights[0] := 42; // set first row height
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.