Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
private
void
radGridView1_GroupSummaryEvaluate(
object
sender, GroupSummaryEvaluationEventArgs e)
{
if
(!(e.Context
is
GridViewSummaryRowInfo))
return
;
}
e.Value =
this
.FormatSummaryString((
decimal
)e.Value);
string
FormatSummaryString(
value)
result = String.Format(
"{0:N2}"
, value);
result = result.Replace(Thread.CurrentThread.CurrentCulture.NumberFormat.NumberGroupSeparator,
""
);
int
index = result.LastIndexOf(
"000000"
(index > -1)
result = result.Remove(index, 6);
result +=
" M"
"000"
result = result.Remove(index, 3);
" K"
result;