View previous topic :: View next topic |
Author |
Message |
MartyIce
Joined: 10 Dec 2010 Posts: 3
|
Posted: Fri Dec 10, 2010 3:37 pm Post subject: Strikethrough text in tree? |
|
|
Is it possible to have a cell appear in the tree with the text formatted with a "strikethrough" appearance? |
|
Back to top |
|
|
MartyIce
Joined: 10 Dec 2010 Posts: 3
|
Posted: Fri Dec 10, 2010 5:11 pm Post subject: Found solution |
|
|
This seems to work OK:
// class level declaration
private Style _strikethroughStyle;
// within my GetCellData event handler:
if (_strikethroughStyle == null)
{
_strikethroughStyle = new Style(e.CellData.EvenStyle);
_strikethroughStyle.Font = new Font(e.CellData.EvenStyle.Font, FontStyle.Strikeout);
}
e.CellData.EvenStyle = _strikethroughStyle;
e.CellData.OddStyle = _strikethroughStyle; |
|
Back to top |
|
|
|