Changing Font in DataGridView
Posted on 2009-06-30
Hi, I'm using VB 2005, WinForms. I have a DataGridView that contains a list of users. Some users are "active" users and some are "inactive." I use a BindingSource Filter to show each type. -- All that works great.
However, for the sake of clarity, I'd like to change the Font of the "inactive" users to a font with a "strike-through" line. Hence, showing that the user has been crossed out or removed from the list in some graphic manner.
How can I change my DataGridView's Font to "strike-through"?
I tried >> dgvMyUsers.Font.Strikeout = True , but that doesn't work. It gets a squiggly blue line under it. What's missing?
Thanks for your help,