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.
 
Back
Top