TreuDBGrid permanent drop down arrows for sources other than TrueDbDropDown?

Posted by: lbd34778 on 20 August 2018, 4:48 pm EST

    • Post Options:
    • Link

    Posted 20 August 2018, 4:48 pm EST - Updated 4 October 2022, 2:19 am EST

    I’m using VB

    I’m using truedbgrids in several locations and the TrueDbDropDowns work flawlessly.

    I have a need to to set one cell as a datetime selection. To do this

            Me.TrueDBGrid.Splits(0).DisplayColumns(NameOf(class.value)).DataColumn.Editor = $DropDownHere
    

    If I were using a TrueDbDropDown I’d be able to use

            Me.TrueDBGrid.Splits(0).DisplayColumns(NameOf(class.value)).ButtonAlways = True
            Me.TrueDBGrid.Splits(0).DisplayColumns(NameOf(class.value)).DropDownList = True
    

    Those don’t seem to keep the drop down arrow though

    See the top screenshot where there is no dropdown under Expire, but in the lower when I click in there is a drop down?

    I like the appearance of the drop down for the date time better than the generic one i have in my first column that doesn’t fill the whole cell, but my primary concern is keeping a permanent drop down error even when cells are not selected.

    Thanks!

  • Posted 22 August 2018, 1:02 am EST

    Hi Brandon!

    Currently, there is no workaround to achieve the requested behaviour in the control.

    Be noted that on setting Editor property of a column in the grid, the user can see the control (or button in this scenario) when the cell is in edit mode.

    c1TrueDBGrid1.Columns("CategoryId").Editor = C1TrueDBDropdown1
    
    

    With the above code, setting ButtonAlways property does nothing.

    c1TrueDBGrid1.Splits(0).DisplayColumns("CategoryId").ButtonAlways = True
    
    

    And as you already know, on setting DropDown property along with ButtonAlways property, the user can see buttons without focusing the cell.

    c1TrueDBGrid1.Columns("CategoryID").DropDown = Me.C1TrueDBDropdown1
    c1TrueDBGrid1.Splits(0).DisplayColumns("CategoryId").ButtonAlways = True
    

    Best regards,

    Meenakshi

  • Posted 22 August 2018, 5:22 pm EST

    Ah was hoping I could make it work but will work w/this.

    Thank you Meenakshi

Need extra support?

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

Learn More

Forum Channels