Binding data from entityCollection to gridView by DevExpress.RepositoryItems

Posts   
 
    
nefise
User
Posts: 22
Joined: 01-Dec-2006
# Posted on: 28-Dec-2006 10:34:54   

llblgen Pro version 2.0 , Adapters, Oracle, .NET 2005 Developer Express .Net2005

I can bind data from entityCollection to DevExpress GridView but when i embed a repositoryItemLookUpEdit into cells of a column for showing the definition of a code Value. It does not work, LookUpEdit items are filled according to a database table. The value in the collection and the gridview are true. But it can not bind the value with the lookUpEdit. It must bind the value of the gridcell to the ValueMember of the LookUpEdit and shows the definition of the code in the cell. Can the problem be about EntityCollection?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39859
Joined: 17-Aug-2003
# Posted on: 28-Dec-2006 11:16:04   

how have you setup the controls? We're not experts in devexpress' controls so we don't know the fine details about these controls.

Frans Bouma | Lead developer LLBLGen Pro
cheng
User
Posts: 8
Joined: 05-Apr-2009
# Posted on: 23-Apr-2009 04:25:42   

Hi,

I ran into this same problem today as well. Did a lot of searching, and found this thread.

Strange that I'm able to use an EntityCollection as the datasource for a RepositoryItemLookUpEdit (a combo box type control that can be used within DevExpress' WinForms XtraGrid for looking up FKs to display some other attribute like a name from the foreign table) but it didn't work with a TypedView.

I tried it with and without a BindingSource and the result was the same - with the TypedView, the lookup didn't succeed and the field was blank. With an EntityCollection, it was OK.

The failure was silent as far as I can tell, so not sure what further information to provide.

Walaa avatar
Walaa
Support Team
Posts: 14993
Joined: 21-Aug-2005
# Posted on: 23-Apr-2009 09:40:14   

Try binding to the DefaultView property of the TypedView.

Which LLBLGen Pro runtime library version are you using?