Home Forums WinForms controls Xceed Grid for WinForms Does the filter row demoed in the extensibility sample…

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

    support the CellEditorDisplayConditions property. I tried setting that property to always in the sample but it doesn’t show the combo boxes on the filter row.

    Imported from legacy forums. Posted by Rico (had 1756 views)

    User (Old forums)
    Member
    Post count: 23064

    This is because the filter row uses a filterEditor as the editor, and this editor is a single instance, that is, it is always the same instance of the editor that is used when entering edit mode.

    protected override CreateControlMode CreateControlMode
    {
    get
    {
    // The template control will be the one used.
    // It won’t be cloned each time the cell enters edition.
    return CreateControlMode.SingleInstance;
    }
    }

    All other editors in the grid are clones, which means that every time a cell enters edition, a new instance of the editor is created, and it is destroyed when leaving editing.

    CellEditorDisplayConditions is intended only for cloned editors, and not for single instance editors. It is normal since the same editor instance cannot be used in two or more cell at the same time.

    Imported from legacy forums. Posted by André (had 3135 views)

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