New Posts New Posts RSS Feed: DataBinders for DevExpress controls
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

DataBinders for DevExpress controls

 Post Reply Post Reply
Author
davidklitzke View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 14-Jun-2007
Posts: 715
Post Options Post Options   Quote davidklitzke Quote  Post ReplyReply Direct Link To This Post Topic: DataBinders for DevExpress controls
    Posted: 31-Dec-2007 at 6:47am
Reread the Forum post at :
 
 
The post discusses what you need to do to get the control to show up in the dropdownlist of the ControlBinding Manager.  Let me know if this doesn't fix your problem.
Back to Top
vkh75 View Drop Down
Newbie
Newbie


Joined: 15-Jun-2007
Location: Ukraine
Posts: 14
Post Options Post Options   Quote vkh75 Quote  Post ReplyReply Direct Link To This Post Posted: 30-Dec-2007 at 9:28am
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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down