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

2 sujets de 1 à 2 (sur un total de 2)
  • Auteur
  • peterj
    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?


    Diane [Xceed]
    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.

2 sujets de 1 à 2 (sur un total de 2)
  • Vous devez être connecté pour répondre à ce sujet.