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
No Data
Reply
  • 11095
    Offline posted

    Hello,

    Thank you for contacting Infragistics Developer Support!

    I was not able to reproduce the behaviour that you're seeing on your side. I have attached the sample project I used to test this. Please test this project on your side; whether or not it works correctly may help indicate the nature of this issue.
    If this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back, or send a small sample project of your own if you have one.
    Please let me know if I can provide any further assistance.

    InitializeRowNotFiringForFirstRow.zip
Children