I have created a summary row like this:
and I have formatted the text in this way:
How can I set the format string like this {0:R #.##,##}?
private void radGridView1_Initialized(object sender, EventArgs e) { this.radGridView1.SummaryRowsBottom.Add(new GridViewSummaryRowItem(new GridViewSummaryItem[]{ new GridViewSummaryItem("Balance", "{0}", GridAggregateFunction.Sum)})); this.radGridView1.MasterTemplate.ShowTotals = true; this.radGridView1.MasterView.SummaryRows[0].PinPosition = PinnedRowPosition.Top; }private void radGridView1_ViewCellFormatting(object sender, CellFormattingEventArgs e) { if (e.CellElement is GridSummaryCellElement) { e.CellElement.TextAlignment = ContentAlignment.MiddleRight; Font summaryFont = new Font("Segoe", 9, FontStyle.Bold); e.CellElement.Font = summaryFont; } }