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

User (Old forums)
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
// 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)