Hello Syncfusion,
I have a GridDataTemplateColumn like this :
var cTmp = new DataTemplate { VisualTree = txtBlck };
var eTmp = TemplateHelper.GetTemplateForEnum(property, colName);
var colap = new GridTemplateColumn
{
MappingName = colName,
HeaderText = headerText,
CellTemplate = cTmp,
EditTemplate = eTmp,
ColumnSizer = GridLengthUnitType.Auto,
AllowResizing = true
};
public DataTemplate GetTemplateForEnum(Type type, string propertyName)
{
var elmtFct = new FrameworkElementFactory(typeof(ComboBox));
elmtFct.SetBinding(
ItemsControl.ItemsSourceProperty,
new Binding(propertyName)
{
Converter = new ComboBoxEnumConverter(),
ConverterParameter = type,
Mode = BindingMode.OneTime
});
elmtFct.SetBinding(
Selector.SelectedValueProperty,
new Binding(propertyName)
{
Mode = BindingMode.TwoWay,
UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged,
NotifyOnTargetUpdated = true
}
;
elmtFct.SetValue(FocusManagerHelper.WantsKeyInputProperty, true);
elmtFct.SetValue(FocusManagerHelper.FocusedElementProperty, true);
return new DataTemplate { VisualTree = elmtFct };
};
The thing is I would like to trigger CurrentCellValueChanged on the propertychanged event from biding => SelectedValueProperty of combobox .
But, the CurrentCellValueChanged triggers only when de CurrentCell is changed.
Can you tell me how can I trigger without changing cell please ? I'm stuck.
Many Thanks.
Alexandre Leclerc.