Currency format when exporting

2 posts, 0 answers
  1. Tina
    Tina avatar
    130 posts
    Member since:
    Jul 2011

    Posted 28 Jun 2012 Link to this post

    How to show currency format for a gridboundcolumn when exporting?
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 28 Jun 2012 Link to this post

    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.
Back to Top