Home Forums WinForms controls Xceed Grid for WinForms Problem to create insertion row with buttom Reply To: Problem to create insertion row with buttom

User (Old forums)
Post count: 23064

Normally, you set up the CellEditorManager and the CellViewerManager on the Column, not on the cells themselves. This will ensure every cell of that column will have an editor, including the InsertionRow cell.

e.g. :

gridControl1.Columns[ “Browse” ].CellEditorManager = new CellEditorManager( btnBrowse, “Text”, true, true );
gridControl1.Columns[ “Browse” ].CellViewerManager = new CellViewerManager( btnBrowse, “Text” );

You do this at form_load, before loading the grid with data, since it is a template, and it must be set up before the grid is filled, so it is taken into account when actually building the cells.

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