Datagrid Font Control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
How do I strike-out some text in a certain cell(line through text)? This
would be in C# and a windows form.

Thanks.
 
Hi,

You will need to create a custom DataGridColumnStyle (most likely derived
from DataGridTextBoxColumn). Then, you should override its PaintText method
(or the Paint one of PaintText is not overridable) and modify the font as
appropriate.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top