<StackPanel> <igEditors:XamComboEditor x:Name="xamComboEditor1"/> <ComboBox x:Name="comboEditor"/></StackPanel>
using System.Collections.Generic;using System.Windows;
namespace DataGridTest{ public partial class ComboEditorTest : Window { private class ComboEditorTestItem { public int ID { get; set; }
public string Name { get; set; } }
public ComboEditorTest() { InitializeComponent();
List<ComboEditorTestItem> data = new List<ComboEditorTestItem>(); data.Add(new ComboEditorTestItem() { ID = 1, Name = "First" }); data.Add(new ComboEditorTestItem() { ID = 2, Name = "Second" }); data.Add(new ComboEditorTestItem() { ID = 3, Name = "Third" });
xamComboEditor1.DisplayMemberPath = "Name"; xamComboEditor1.ValuePath = "ID"; xamComboEditor1.ItemsSource = data; xamComboEditor1.IsEditable = true;
comboEditor.DisplayMemberPath = "Name"; comboEditor.SelectedValuePath = "ID"; comboEditor.ItemsSource = data; comboEditor.IsEditable = true; } }}
When typing "Sc" into the Editor 8 exceptions raise up in the output window of visual studio:
A first chance exception of type 'System.FormatException' occurred in mscorlib.dllA first chance exception of type 'System.Exception' occurred in System.dllA first chance exception of type 'System.FormatException' occurred in mscorlib.dllA first chance exception of type 'System.FormatException' occurred in mscorlib.dllA first chance exception of type 'System.FormatException' occurred in mscorlib.dllA first chance exception of type 'System.Exception' occurred in System.dllA first chance exception of type 'System.FormatException' occurred in mscorlib.dllA first chance exception of type 'System.FormatException' occurred in mscorlib.dll
They do not occur using the default ComboBox from WPF. How can I get rid of them using the XamComboEditor?
Hello,
I was not able to reproduce this behavior using the latest service release (for 10.1 - 10.1.20101.2018). If you are not using it, I would recommend that you install service release and test this again. It could be an issue that we have already resolved.