I have a stringgrid that contains text read from a file. The first row are column headings and I want to size the columns so the text fits. The following code creates columns that are about 10% too narrow - any idea how I can get it to fit?
ResultsGrid.Canvas.Font := ResultsGrid.Font;
for Col := 0 to ResultsGrid.ColCount - 1 do
Red Flag Submitted
Thank you for helping keep Tek-Tips Forums free from inappropriate posts. The Tek-Tips staff will check this out and take appropriate action.
Reply To This Thread
Posting in the Tek-Tips forums is a member-only feature.