Current filter:
          You should refresh the page.
          Not Logged In

          Text disappears from a LookUp editor after focusing another grid column

          0
            • Some columns in my grid are associated with the RepositoryItemLookUpEdit. When I select a value from a lookup list in column A, the value is displayed. But when I change focus to another column (Column B), the cell becomes empty. If I return to column A, the original text reappears. How to make sure that the text displayed does not disappear when focus is moved from a LookUp column?

          You must  log in  or  register  to leave comments

          1 Answer

          0

          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

          You must  log in  or  register  to leave comments