I'm using DevForce Express and DevExpress XtraEditors. Will I be able to use these controls with ControlBindingManager if I just write DataBinders for them?
I tried to find it out and I wrote a custom DataBinder for DevExpress TextEdit control, I added ControlBinderMap.Instance.UpdateMap(...) statement to my Form constructor, but there were no changes in Designer dropdown list of ControlBindingManager... :(
Here is code of my custom DataBinder:
public class TextEditDataBinder : ControlDataBinder {
public TextEditDataBinder() : base() { }
public override Type ControlType {
get { return typeof(TextEdit); }
}
public override string BindingPropertyName {
get { return "EditValue"; }
}
protected override double GetBaseFitness(IDataConverter pConverter) {
return UIFitness.None;
}
}
Edited by vkh75 - 30-Dec-2007 at 9:31am