FlexGrid ComboList dropdown column widths too wide

Posted by: michael on 15 November 2017, 12:34 pm EST

    • Post Options:
    • Link

    Posted 15 November 2017, 12:34 pm EST

    I’m using the comboList property to set a combo list dropdown for a column.

    Tgrid.Cols(11).ComboList = comboListString
    

    comboListString = “P1” & vbTab & “First Item” & “P2” & vbTab & “Second Item”

    But when the dropdown displays, the column with P1 and P2 in it is as wide as the second column with the text. The columns stretch past the end of the visible dropdown and are thus unreadable.

    How do I set the column widths of the dropdown itself?

  • Posted 20 November 2017, 4:49 am EST

    Hello,

    DropDown Width depends on the Width of the column. You can not set Width for the DropDown explicitly.

    However, you can set the Width of the column using the following line of code:

    c1FlexGrid1.Cols(1).Width=50

    Thanks,

    Mohit

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels