Home Forums WinForms controls Xceed Grid for WinForms WinComboBox – cannot set height of TextBoxArea

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

    I have a WinComboBox on a cell of a grid, and I try to change its height:

     WinComboBox combo = new WinComboBox();

    combo.Items.Add(new ComBoxItem(new object[1] {“First”}));

    combo.TextBoxArea.Height = 13;

    Is this the right way to do? It seems not working for me. The height of the combo box text area never changed. (The value remains 18 no matter what value I set to.)  Please help. Thanks!

    Imported from legacy forums. Posted by Sop (had 688 views)

    Xceed Support
    Member
    Post count: 5658

    First, are you setting the BorderStyle of your WinComboBox? This parameter will affect the rendering of the control. Either way, the CellEditorManager (the ComboBoxEditor in this case) will stretch to the size of the cell. So, here you can directly modify the size of the ComboBox by modifying the size of the cell.

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

    User (Old forums)
    Member
    Post count: 23064

    No, I am not setting the BorderStyle of my WinComboBox.

    Yes, you’re right. The ComboBox would stretch to the size of the cell. However, the text (item) selected from the ComboBox is not stretched to the size of the cell. After I select an item from the ComboBox, the text (item) appeared on the cell has its bottom part truncated.

     

    Imported from legacy forums. Posted by Sop (had 1375 views)

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