Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1360
HTML Encode not Working?
posted

I have a WebDataGrid bound to an SQL data source which displays a single column of data. The definition looks like this

   <ig:WebDataGrid ID="helpGRID" runat="server" Height="55%" Width="199px"
      AutoGenerateColumns="False" DataSourceID="helpSOURCE" >
      <Columns>
         <ig:BoundDataField DataFieldName="MenuItemCaption" Key="MenuItemCaption" HtmlEncode="true">
            <Header Text="Help" /></ig:BoundDataField>
      </Columns>
      <Behaviors><ig:Paging></ig:Paging></Behaviors>
   </ig:WebDataGrid>

It displays the dorrect records but in spite of setting HtmlEncode true I still see simple HTML formatting commands in the text that is displayed:

If you do not have a current subscription, please click on the <b>Subscribe</b> item in the menu to purchase a subscription using our secure on-line shop.

instead of:

If you do not have a current subscription, please click on the Subscribe item in the menu to purchase a subscription using our secure on-line shop.

What am I doing wrong?

Kind regards

Paul

ASP.NET Version=10.3.20103.2088
VS 2010
Dev Sys: Win 7 Ult 64Bit 8GB RAM