Welcome Guest Search | Active Topics | Sign In | Register

! ! ! ITS VERY URGENT ! ! ! If Data in Database is like AB&M, When comes to Grid , it shows AB . Options
kapil
Posted: Friday, February 19, 2010 12:46:07 PM
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




eo_support
Posted: Friday, February 19, 2010 12:59:08 PM
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!
kapil
Posted: Friday, February 19, 2010 5:07:56 PM
Rank: Newbie
Groups: Member

Joined: 2/19/2010
Posts: 6
Thanks.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.