Description:
I have a table in the XtraGrid which contains values that are the keys for a lookup table with the values that I want to display. How can I display a lookup list using these values?
Answer:
Applies to:
Any container for the XtraEditors: XtraGrid, XtraVerticalGrid, XtraTreeList, XtraBars
This can be done by using the LookUp editor. To do this, first create a new LookUpEdit repository item, adjust its DataSource, DisplayMember and ValueMember properties as explained in the help.
To add the LookUp editor to your grid, please create a new grid column and assign its ColumnEdit property to the newly created editor.
Example
Please see the GridPopulation module of the GridTutorials demo project which is shipped with the XtraGrid. Pay attention to the Product column.
See Also:
How to display text or a picture in a column in place of the numerical value returned from the database for that column
Is it possible to sort LookUp columns by their displayed values?
Assigning Editors to Columns in the XtraGrid help
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.