Nick (DevExpress Support)
06.23.2004
You must
log in
or
register
to leave comments
1 Answer
Applies to:
XtraGrid, XtraTreeList, XtraVerticalGrid
The LookUpEdit repository item is set up incorrectly. Please make certain that you have assigned a lookup data source and specified the DisplayMember and ValueMember properties in your lookup editor. Please note that the ValueMember property should point to a data column, whose data type is exactly the same as the data type of the grid column's underlying field. You can make certain that the lookup editor is properly configured by setting the ThrowExceptionOnInvalidLookUpEditValueType property to true and testing your application. If an exception is thrown when you select a lookup value, the ValueMember field and the editor's underlying value are of different types.
See Also:
LookUpEdit Class
How to filter a second LookUp column based on a first LookUp column's value
How to force the Grid to refresh the values displayed in a LookUp column after loading data
How to Bind an XPCollection to a LookUp