Hi,
another tricky solution when you know all the possibilities of the expression framework is something like this :
Code:
protected override void InitializeDataBindings()
{
base.InitializeDataBindings();
BindingManager.AddBinding("ddlLocations.SelectedValue", "SearchCriteria.LocationCode", BindingDirection.SourceToTarget);
BindingManager.AddBinding("{ddlLocations.ClearSelection();ddlLocations}.SelectedValue", "SearchCriteria.LocationCode", BindingDirection.TargetToSource);
}
The first binds from the ddl.SelectedValue to the model.
The second call ddl.ClearSelection() before to bind from the model to the ddl.SelectedValue.
-Bruno