Mike,
I need to display column header captions with superscript and subscript.(need not be at run time)
I have used graphics object and DrawString method to acheive the same but in a simple label control on a Windows Form.
Some part of the Code:
e.Graphics.DrawString("Omega", SubScriptFont, labelForeColorBrush, SubSize.Width, SubSize.Height / 2, StringFormat.GenericTypographic);
I need the same functionality in the Ultragrid column header.
I am trying to use the DrawFilter and DrawParams(Graphics.DrawString)
Any suggestions ?
{
return DrawPhase.BeforeDrawForeground;
else
}
string caption = headerElem.Header.Caption;
drawParams.Graphics.DrawString(caption, NormalFont, labelForeColorBrush, 0, 0, StringFormat.GenericTypographic);
drawParams.Graphics.DrawString("Acw", SubScriptFont, labelForeColorBrush, SubSize.Width, SubSize.Height / 2, StringFormat.GenericTypographic);
Hi Madhavi,
What part of this is giving you trouble? If you can do this for a label, then the Column Header in the grid shouldn't really be much more complicated. The hardest part will be finding the correct UIElement that draws the text. The easiest way to do this is by using the Infragistics UIElementViewer Utility