Hi,
I have a winforms radGridView with a group summary row that sums various fields. From reading other posts I understand that to format the summary row I need to use the viewCellFormatting event. My question it why does the text (numeric data) not get aligned to the middleRight by the following code?
private void rgvFinancials_ViewCellFormatting(object sender, Telerik.WinControls.UI.CellFormattingEventArgs e)
{
if (e.CellElement is Telerik.WinControls.UI.GridSummaryCellElement)
{
float f = 8.25f;
e.CellElement.Alignment = ContentAlignment.MiddleRight;
e.CellElement.Font = new Font("Microsoft Sans Serif", f, FontStyle.Bold, GraphicsUnit.Point);
e.CellElement.UpdateLayout();
}
}
The Font size and bold properties are being set correctly but the text alignment appears to be centered not to the right.
I have a winforms radGridView with a group summary row that sums various fields. From reading other posts I understand that to format the summary row I need to use the viewCellFormatting event. My question it why does the text (numeric data) not get aligned to the middleRight by the following code?
private void rgvFinancials_ViewCellFormatting(object sender, Telerik.WinControls.UI.CellFormattingEventArgs e)
{
if (e.CellElement is Telerik.WinControls.UI.GridSummaryCellElement)
{
float f = 8.25f;
e.CellElement.Alignment = ContentAlignment.MiddleRight;
e.CellElement.Font = new Font("Microsoft Sans Serif", f, FontStyle.Bold, GraphicsUnit.Point);
e.CellElement.UpdateLayout();
}
}
The Font size and bold properties are being set correctly but the text alignment appears to be centered not to the right.