Question RTF in DataGridView


New member
Mar 1, 2010
Belgium, Eastern-Flanders, Ghent
Programming Experience
Hi all,

I made a custom column that can read RTF so that colors and fonts can be used.
Now that this is done, I encountered a problem.
The rows in this datagridview can be minimized (standardheight) or maximized (height of the text in the rtf cell).
But when using different fonts in this rtf cell, it all goes wrong.
So I was wondering wether anyone knows of a VB.Net class out there that can decipher the rtf code for me, so that I can calculate the height of each text in a different font, add up the enters, and come up with the entire height of the text.

I assume I'm not the only person in the world to encounter this, so there must be something out there, or is that just wishful thinking? :eek:

Kind regards

Coupé Dries
Top Bottom