Hi,
In addition to phil.o's comment.
Have a look at the manual for
Decimal.ToString Method (String) (System)[
^]
You can then use it like:
decimal result;
if (e.Row.RowType == DataControlRowType.DataRow)
{
if (decimal.TryParse(e.Row.Cells[4].Text, out result)) {
e.Row.Cells[4].Text = result.ToString("0,0");
}
}
... hope it helps.