Home Forums WinForms controls Xceed Grid for WinForms edit ComboBoxEditor Reply To: edit ComboBoxEditor

Xceed Support
Member
Post count: 5658

1. The problem is that you need a CellEditorManager to edit a cell. Before you add your ComboBoxEditor, there is a default TextEditor. However, after disposing of the CellEditorManager (ComboBoxEditor), you need to re-assign a TextEditor (to be able to edit it).

2. You can use the GetFittedWidth() method from the ColumnManagerCell. Here is a snippet that shows how it could be done:

gridControl1.Columns(0).Width = DirectCast(gridControl1.FixedHeaderRows(1), ColumnManagerRow).Cells(0).GetFittedWidth()

Imported from legacy forums. Posted by CharlesB (had 4956 views)