I am handling the ItemDataBound event and in certain instances want to add some extra HTML content into a table cell /after/ the data which I expect to see there as a result of it being a GridBoundColumn.
To do this I just do something like:
On rows where this code gets executed the content I add is displayed /but/ the GridBoundColumn value that I would expect to precede it does not get output. If I do not do the appending of the controls, the data bound value is output correctly.
What am I doing wrong?
M
To do this I just do something like:
HyperLink oHL = new HyperLink(); |
oHL.Text = sReferrerText; |
oHL.NavigateUrl = sReferrerURL; |
oDataItem["Site"].Controls.Add( new LiteralControl("<br/>") ); |
oDataItem["Site"].Controls.Add(oHL); |
On rows where this code gets executed the content I add is displayed /but/ the GridBoundColumn value that I would expect to precede it does not get output. If I do not do the appending of the controls, the data bound value is output correctly.
What am I doing wrong?
M