Print Page | Close Window

How to use DevExpress LookupEdit in XtraGridBindingManager?

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2009
Forum Discription: For .NET 3.5
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=1425
Printed Date: 22-Sep-2025 at 1:02am


Topic: How to use DevExpress LookupEdit in XtraGridBindingManager?
Posted By: Suah
Subject: How to use DevExpress LookupEdit in XtraGridBindingManager?
Date Posted: 15-Aug-2009 at 11:59pm
How to use DevExpress LookupEdit/RepositoryItemLookUpEdit in XtraGridBindingManager?

It works fine with CBM , but I have several problem when it is in an XGBM.
Should I set the controltype in XGBM as LookUpEdit and use EntityListManager?
Or just leave it as TextEdit ,assign a RepositoryLookUpEdit to the ColumnEdit for the column in the GridView?

The sample I found here http://www.ideablade.com/forum/forum_posts.asp?TID=259&KW=lookupedit is written in old versin DevForce.

Is it possible to populate the datasource other than entites, say every stock has four price levels and they are stored in the stock table. When order details, I want to get a dropdown list to select for a line item.

Regards,




Replies:
Posted By: davidklitzke
Date Posted: 17-Aug-2009 at 9:56am
Look at the Learning Units example under 070_userfaces\WinformApps\Samples\100WNF_ComposingWithUserControls.  There is an example of or an OrderUserControl that uses a DataGridViewBindingManager.  Modify this example slightly to use an XGBM instead od a DGVBM. Here is the code:
 
http://www.ideablade.com/forum/uploads/23/DevExLookup.zip - uploads/23/DevExLookup.zip



Print Page | Close Window