bazzer747 25 Posted February 11, 2022 Hi I have a stringgrid which has a height of about twice the height of the text that is entered in it (the right side in the attached). I think the display would look much better if I could align this text vertically in the centre, rather than at the top of the cell. I've tried to figure out if there is a setting somewhere but can't find one (if one exists). Any help would be appreciated. Share this post Link to post
PeterBelow 238 Posted February 11, 2022 (edited) You can use the OnDrawCell event to draw the cell content yourself any way you like. The stringgrid.Canvas has a TextRect method that supports aligning the text in the way you want. Edited February 11, 2022 by PeterBelow 1 Share this post Link to post
bazzer747 25 Posted February 12, 2022 Many thanks Peter, set me on the right track. Figured it out now. Share this post Link to post