Hello,
my code in AutoGeneratingField Event of DataForm
the
I'd like the combo box behaves as textbox.
my code in AutoGeneratingField Event of DataForm
// Routertype
if
(e.PropertyName ==
"RouterType"
)
{
DataFormDataField old = e.DataField;
e.DataField =
new
DataFormComboBoxField
{
ItemsSource =
new
RouterTypeList(),
DisplayMemberPath =
"Name"
,
SelectedValuePath =
"Value"
,
DataMemberBinding = old.DataMemberBinding,
Label = old.Label,
Mode = old.Mode,
Description = old.Description
};
}
the
DataFormComboBoxField
in the DataForm is allways enabled (show the Image).I'd like the combo box behaves as textbox.