Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
235
InitializeRow not firing for first row
posted

I have the following code in a WebHierarchicalDataGrid's InitializeRow event in order to format html links when I don't know if or where they will be in the datatable.  It's been working great for years, but within the last year something has broken, and it no longer formats the first row.  All other rows are formatted fine.  I can't know for sure which version this first popped up in, but I know it exists in 12.2.20142.2146.

If e.Row.Items.Count > 0 Then

For i As Integer = 0 To e.Row.Items.Count - 1

If e.Row.Items(i).Text.ToLower.Contains("href=") Then

Dim oColumn As BoundDataField = CType(e.Row.Items(i).Column, BoundDataField)

oColumn.HtmlEncode = False

oColumn.CssClass = "nowrapHTML"

End If

Next

End If

Parents Reply Children