Home Forums WinForms controls Xceed Grid for WinForms ComboBoxViewer CellEditorDisplayCondition: cell value disappears when different from ‘Always’

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #16330 |

    Hi,

    I have some databound colums in a gridControl. These databound columns are bound to a relational entitycollection (LLBLGen), which have a foreign key/ primary key relationship. Example: I display Contracts. Contracts have a ContractTypeID, which is related to ContractType via ContractTypeID. To display the ContractTypeName instead of the ContractTypeId, I have a ComboBoxViewer, and a ComboBoxEditor, where I set the datasource to this ContractType collection. This works fine initially, but I have to set the CellEditorDisplayCondition to Always. If I don’t, the value does not show. But, I would like to show the value only as text (as you do in Example “Rich Cell Editors”. How do I do this?

    Any help is very appreciated!

    Best regards,
    Annette Skår

    Imported from legacy forums. Posted by annetteS (had 520 views)

    User (Old forums)
    Member
    Post count: 23064

    Hi,

    Never mind, I figured it out. Stupidly I had not set the datasource of the CellViewerManager…

    Best regards,
    Annette

    Imported from legacy forums. Posted by annetteS (had 707 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.