This is a migrated thread and some comments may be shown as answers.

Currency format when exporting

1 Answer 42 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tina
Top achievements
Rank 1
Tina asked on 29 Jun 2012, 01:56 AM
How to show currency format for a gridboundcolumn when exporting?

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 29 Jun 2012, 03:58 AM
Hello,

Try the following code to achieve your scenario.
C#:
protected void RadGrid1_ExportCellFormatting(object sender, ExportCellFormattingEventArgs e)
{
  if (e.FormattedColumn.UniqueName == "UniqueName")
  {
     e.Cell.Style["mso-number-format"] = "Currency";
  }
}

Thanks,
Shinu.
Tags
General Discussions
Asked by
Tina
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or