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
Setting XamDataGrid Field EditorType to XamComboEditor
posted

I get the following exception when setting the XamDataGrid Field EditorType to the Infragistics.Controls.Editors.XamComboEditor. I'm using v11.2  and I need the MultiSelection and ComboBox support in the Infragistics.Controls.Editors.XamComboEditor (AllowMultipleSelectionProperty & CheckBoxVisibilityProperty) in a cell in my XamDataGrid. 

The exception seems self-explanatory - the Infragistics.Controls.Editors.XamComboEditor does not derive from ValueEditor while Infragistics.Windows.Editors.XamComboEditor does but how do I achieve MultiSelection and ComboBox in a dropdown in my XamDataGrid which the Infragistics.Controls.Editors.XamComboEditor supports?

 

What is the rationale behind having these 2 different XamComboEditors?

 

Thanks,

Vikrant

 

================================

 

igField_.Settings.EditorType =

 

typeof(XamComboEditor);

Throws this exception: 

Exception='System.ArgumentException: FieldSettings.EditorType's must be set to a type that derives from ValueEditor

Parameter name: EditorType

at Infragistics.Windows.DataPresenter.FieldSettings.ValidateEditorType(Object value)

at System.Windows.DependencyProperty.IsValidValue(Object value)

at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)

at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)

 

 

 

Parents Reply Children