Print Page | Close Window

DataBinders for DevExpress controls

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=639
Printed Date: 05-May-2025 at 4:32pm


Topic: DataBinders for DevExpress controls
Posted By: vkh75
Subject: DataBinders for DevExpress controls
Date 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;

     }

}




Replies:
Posted By: davidklitzke
Date Posted: 31-Dec-2007 at 6:47am
Reread the Forum post at :
 
http://www.ideablade.com/forum/forum_posts.asp?TID=263 - http://www.ideablade.com/forum/forum_posts.asp?TID=263
 
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.



Print Page | Close Window