Question

I have an issue where in the SPGridView if I add a hyperlink field or anything, it seems like the javascript:window.open does not work. It does not show as a hyperlink.

Any advice?

Was it helpful?

Solution

I was able to resolve this one myself:

        BoundField colCaseTitle = new BoundField();
        colCaseTitle.ItemStyle.Width = Unit.Pixel(200);
        colCaseTitle.DataField = "CaseTitleModal";
        colCaseTitle.HeaderText = "Title";
        colCaseTitle.SortExpression = "CaseTitle";
        **colCaseTitle.HtmlEncode = false;**
        dataFilterList += ",";
        this.spGridView.Columns.Add(colCaseTitle);

Also added this to my class that I am binding with:

return "" + CaseTitle + "";

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top