The only way I found to change the HtmlEncode property on a bound column when auto-generating the grid-view.
protected void grFeedHistoryView_RowDataBound(object sender, GridViewRowEventArgs e) { BoundField field = (BoundField)((DataControlFieldCell)e.Row.Cells[2]).ContainingField; field.HtmlEncode = false; }
Be First to Comment