Export Grid to PDF error

2 posts, 0 answers
  1. stevied
    stevied avatar
    37 posts
    Member since:
    Apr 2007

    Posted 14 Nov 2011 Link to this post

    Hi There,

    I'm getting an error becuase i have HTML characters... can anyone explain how i can replace text in the cells on exporting?

    I'm using VB codebehind.

    Many thanks,

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 14 Nov 2011 Link to this post

    Hello Stevied,

    Try the following code snippet.
    bool isexport = false;
    protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
     isexport = true;
     if (e.Item is GridDataItem && isexport)
       GridDataItem item = (GridDataItem)e.Item;
       TableCell cell = item["ColumnUniqueName"];
       cell.Text = "your text";

    Also check the following help documentation.
    PDF export

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top