I put a hyperlinkfield into a gridview, but I realise sometimes I want it to be clickable and sometimes not, depending on the data.
If the item is A or B, I want a hyperlink to bibble.aspx?id=123 , otherwise I just want plain text.
What’s the best way? Should I be using another type of field for this?
You’re probably better off with a template field and a hyperlink control, with the NavigateUrl determined by a ternary operator.