in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

ComboBox in Flexgrid Goes Off Screen

Last post 01-29-2008 12:49 PM by C1_GregL. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 01-15-2008 2:56 PM

    ComboBox in Flexgrid Goes Off Screen

    When you have a FlexGrid with datamaps set and the column that has the combo box is close to the right edge of the screen the combo box goes off screen. The user then cannot see the horizontal scrollbar to see that there are more options available. Is there a way to make the combo box automatically move based on where it is on the screen. Kind of like the the C1Combobox does?

  • 01-29-2008 12:49 PM In reply to

    • C1_GregL
    • Top 10 Contributor
    • Joined on 06-11-2007
    • Pittsburgh PA
    • Posts 500

    Re: ComboBox in Flexgrid Goes Off Screen

    You can code it to move in the SetupEditor event.

    Private Sub C1FlexGrid1_SetupEditor(ByVal sender As System.Object, ByVal e As C1.Win.C1FlexGrid.RowColEventArgs) Handles C1FlexGrid1.SetupEditor

    C1FlexGrid1.Editor.Location = New Point(C1FlexGrid1.Editor.Left - 20, C1FlexGrid1.Editor.Top)

    End Sub

    hope that helps,
    Greg

    Filed under: ,
Page 1 of 1 (2 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.