Hi,
Is there a reason why the following works for a System.Windows.Forms.TextBox but not for an UltraTextEditor?
Me.RateTextBox.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.bsController, "TotalCost.Rate", True))
bsController is a standard windows BindingSource. Note the nested property reference TotalCost.Rate - this is what causes problems for the ultratexteditor. TotalCost is a property of the entity to which bsController is bound. It contains a numeric property Rate, which is what we're trying to bind to.
Is there a way to get the same behaviour with the ultratexteditor?
Kev
Hi Kev,
If you find that you have trouble duplicating the issue by creating a new project, I have often found it useful to come at it from the other angle.
You could create a copy of your real application and then work backwards removing pieces until the sample is down to as little as possible or the problem goes away.
Hi Mike,
After your reply I tried to duplicate it. First of all I just created a pair of simple objects, but it worked for those. Next I figured it might be an entity framework issue (out project used entity framework, and the binding in question was to EF entities), but again it worked there. I'm going to try to buidl the sample up to the point it exhibits the problem, then I'll post it.
If the exact same code works for a TextBox, then it should work for the UltraTextEditor. Are you able to duplicate this in a small sample project? If so, either post it here or Submit an incident to Infragistics Developer Support so we can check it out and get it corrected.
The error I get is "Datamember TotalCost cannot be found on the Datasource", and occurs in the forms InitializeComponent