I have a FlexGrid with WordWrap set to True. It is populated from a recordset. Some of the fields contain a lot of text. Some contain just a few words.

I have Wordwrap = True but, as far as I can make out, if words in a cell wrap, I have to manually set the height of the row (have to say, can't believe how primitive this is!).

So, how can you detect whether words in a particular cell have wrapped and, if you can detect that:

how do you know how many times wordwrap has happened in any cell?
i.e. how many lines of text there are in any cell

how do you determine how high to make the row based on the number of lines of text?

Cheers