"Input string was not in a correct format." Exception in WPF Datagrid
I have a BindingListCollectionView connected to the DataContext of a datagrid. The datagrid now shows the list of items of the BindingListCollectionView. But when I click on the last row to add a new item. I get an "Input string was not in a correct format." exception.
When I step with the debugger through the WpfToolkit library the exception happens in the private void MakeFullRowSelection(object dataItem, bool allowsExtendSelect, bool allowsMinimalSelect) function of the file DataGrid.cs at the line EndUpdateSelectedItems().
Can someone sug开发者_StackOverflow社区gest how to solve the issue?
I think this is actually to do with the SelectedItem. If you remove the SelcetedItem binding it should work, or if you run in debug mode. (Known bug see link below) link text
精彩评论