SharePoint: how avoid encoding html content in SPGrid

If you have an html field that the user can edit from user interface, SharePoint encloses its content in div tags.

Then, if you want to show its content in a SPGrid, the div tags appears, unless you set the HTMLEncoding property of the bound column to false.

I've taken this trick from How to stop gridview column from automatically encoding html entities.

Add comment

Loading