Microsoft Developer Network > 포럼 홈 > SharePoint - Development and Programming > SPGridView: Grouping: Group Display Value Rendering Issue
질문하기질문하기
 

질문SPGridView: Grouping: Group Display Value Rendering Issue

  • 2008년 8월 27일 수요일 오후 3: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

모든 응답

  • 2009년 7월 4일 토요일 오전 8:23BifTannen 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    Hi,

    I have the same problem with the GroupField Property...

    If anyone have a solution it could be very helpfull.

    Thanks in advance
  • 2009년 7월 22일 수요일 오전 9:07René Hézser 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    Hi,
    there is another thread which has the answer to the problem:
    http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/61c8f831-2e2e-487c-8b3b-55d628caa270/

    René
    visit my blog: http://www.hezser.de/blog