Home Forums WPF controls Xceed Toolkit Plus for WPF StackOverflow Exception when iterating the Columns during a SizeChanged event

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • peterj
    Participant
    Post count: 5
    #50056 |

    Hi All,

    We’re having an odd issue with the DataGridControl if the ItemsSource is bound to a property that returns a List(Of OurClass) but that property is currently returning Null.

    Basically in our DataGridControl_SizeChanged event we are walking the Columns collection to resize some of the columns to autofill the space, and this works fine as long as the ItemsSource has an Enumerable source (a list of ourClass objects in this case)

    However, if the property that the ItemsSource is bound to returns Null then we get a StackOverflow.

    I’ve done some digging and it looks like internally the datagrid is getting stuck calling IsSourceSupportingDBNull over and over and eventually blows the stack.

    In the interim we’ve gotten around this by making sure that the property always returns a valid (but empty) list and it all works, but any advice on if we are doing something odd?

    Thanks,

    Diane [Xceed]
    Moderator
    Post count: 1353

    Hi peterj,

    Thank you for the bug report. The fix will be included in the next release. Thank you for your patience.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.