Home Forums WinForms controls Xceed Grid for WinForms Width of ComboBoxEditor Dropdown

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

    Any idea how to adjust the width of a grid comboBoxEditor’s dropDown? It’s way too large for what I need

    Thanx for any help
    Steve

    Imported from legacy forums. Posted by stktung (had 2451 views)

    User (Old forums)
    Member
    Post count: 23064

    If you are using the comboBox in a grid, you can do something like this :

    gridControl1.DataRows[1].Cells[0].CellEditorManager = new Xceed.Grid.Editors.CellEditorManager(new Xceed.Editors.WinComboBox(),”Text”,true,true);

    Xceed.Grid.Editors.CellEditorManager man = gridControl1.DataRows[1].Cells[0].CellEditorManager;

    ((Xceed.Editors.WinComboBox)man.TemplateControl).DropDownControl.Width = 500;

    Imported from legacy forums. Posted by Matt (had 284 views)

    User (Old forums)
    Member
    Post count: 23064

    Just wat I needed! Thanx Matt!

    Imported from legacy forums. Posted by stktung (had 3422 views)

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