Rank: Newbie Groups: Member
Joined: 2/19/2010 Posts: 6
|
Hi ,
I am using Oracle Database. In the database table I have data like AB&M. Before binding to the Grid, data is comming fine. I mean, It is comming as AB&M. But when it comes in the Grid , It shows only AB. It is failing to get the data as AB&M . It works fine if the data in the Database is AB & M.
Please suggest me.
! ! ! ITS VERY URGENT ! ! !
Regards, Kapil
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
That is normal. The Grid treats all cell values as HTML. So if you wish to display "&", you must escape it, for example, with HttpServerUtility.HtmlEncode. This means if you load the Grid from a DataTable, you will need to encode all data on the DataTable before you bind it to the Grid.
Thanks!
|
Rank: Newbie Groups: Member
Joined: 2/19/2010 Posts: 6
|
Thanks.
|