MSDN > フォーラム ホーム > SharePoint - Development and Programming > SPGridView: Grouping: Group Display Value Rendering Issue
質問する質問する
 

質問SPGridView: Grouping: Group Display Value Rendering Issue

  • 2008年8月27日 15:04ArminP ユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダルユーザーのメダル
     
    Hi,
     
    we are using a data table (via SPListItemCollection.GetDataTable()) as data source for a SPGridView. There's a column in the data table called "someColumn". In this column there's data containing the "&" character.
    The data in the data table is correct and when we display the data without grouping it also shows up inside the grid on the page without any rendering issue.

    But when we group by "someColumn" (SPGridView.GroupField = "someColumn") the string displayed alongside the expand/collapse image seems to be automatically "double" html encoded, which means the browser is rendering the "&" as html entity "&" (in the html source it is "&").

    We've already tried to use
    • HtmlEncode -> the browser renders "&" or 
    • HtmlDecode -> as expected nothing happens here
    on the data in the data table but nothing works.

    Any suggestions?


    Regards, Armin

すべての返信