New Posts New Posts RSS Feed: LookUpEdit
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

LookUpEdit

 Post Reply Post Reply
Author
pucsoftware View Drop Down
Groupie
Groupie
Avatar

Joined: 15-Apr-2008
Location: United States
Posts: 46
Post Options Post Options   Quote pucsoftware Quote  Post ReplyReply Direct Link To This Post Topic: LookUpEdit
    Posted: 22-May-2008 at 2:24pm
Thanks for your example as this worked. I entered another post in a similar thread about using multiple columns. I'd really like to get the most out of the DevExpress components and this method of databinding a lookup list, while it works, limits me from using multiple columns and all the editor controls I have available with dev express. Is there another way to go about getting this done? I know that the next thing I will need to do is be able to display a multiple column lookup list that can be filtered by "Active/Inactive" data elements in my table, change the row colors based on a field's data, and display images. The DevExpress components are capable of doing all this, but they need to be bound and work the way they normally work. Is there not a way to bind the ControlBindingManager to the field/key value for my main table/object without relying on it to manage the lookup list? If you have any documentation on this or an example that would be useful. I'm using VS.NET 2008 with DevExpress 8.1. Thanks.
 
Darren


Edited by pucsoftware - 22-May-2008 at 2:24pm
Back to Top
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 Posted: 15-May-2008 at 10:33am
Here is a code sample using DExperience 8.1.1 and DevForce 3.6.2.2 that uses a LookupEdit control.
 
Back to Top
pucsoftware View Drop Down
Groupie
Groupie
Avatar

Joined: 15-Apr-2008
Location: United States
Posts: 46
Post Options Post Options   Quote pucsoftware Quote  Post ReplyReply Direct Link To This Post Posted: 13-May-2008 at 2:05pm
We are using the DevExpress 8.1 version controls. I'm just starting out here. When I place a LookUpEdit control on a form and manually bind the LookupEdit.Properties to a list of objects I'm using for a lookup table I get the list to display properly, so I'm getting data and populating the lookup list. However, when I use the ControlBindingManager to select this LookUpList and bind it to the field in my main table (EntityList object) I lose the list. What I get is the strongly typed name in the list of objects repeated for each item in the list. I've tried binding the lookup list using the ListConverter form in the ControlBindingManager as well. It seems I've tried every possible combination but I can't get the LookUpEdit control to display the list properly when bound through the ControlBindingManager.
 
The LookUpEdit smart tasks shows the Binding Source, Display Member, and Display Value. When these are set properly the control works fine. But once I set the control bound using the ControlBindingManager I get the results described above. Since there is no properties for binding the Display Value or Display Member when using ControlBindingManager ListConverter form, how is this done?
 
This shouldn't be too difficult so I've got to missing something simple. Can DevForce provide a stepbystep list of the way to accomplish this?
 
Darren
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down