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

Export Grid to PDF error

1 Answer 31 Views
Grid
This is a migrated thread and some comments may be shown as answers.
stevied
Top achievements
Rank 2
stevied asked on 14 Nov 2011, 10:26 PM
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,

S

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 15 Nov 2011, 05:51 AM
Hello Stevied,

Try the following code snippet.
C#:
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

-Shinu.
Tags
Grid
Asked by
stevied
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Share this question
or