I have a column in a WebHierarchicalDatagrid (single table dataset as source, AutogenerateBands=true, AutoGenerateColumns=true) that contains an HTML link. It currently displays as text but I would like it to be an actual live hyperlink..
I've seen in discussions on this forum that there is an HtmlEncode property for bound columns that would help me with this problem but, unfortunately, I do not have the luxury of defining the columns in the IDE. I have to build the columns dynamically because the datatable's columns vary based on query criteria. So, is there any way for me to change the HtmlEncode property on a dynamically created column?
Hi dpinkston,
You can hack into the column object off of a cell.
grid.GridView.Rows[0].Items[0].Columns
regards,David Young
Thanks for your reply David.
When I try hacking into the column object that way there is no 'HtmlEncode' property available in Intellisense (VS 2008 C#). Do I need to cast the Column object to something different? Or is there another way to get at the 'HtmlEncode' property?