Two clicks to change value of a valueitems in a c1truedbgrid

Posted by: juan.ome on 17 January 2022, 1:09 pm EST

    • Post Options:
    • Link

    Posted 17 January 2022, 1:09 pm EST

    We have a c1truedbgrid with two splits, the first split has a column with valueItems with presentation Normal, with Behavior ‘Cycle con click’ and ‘translate’ and it has three values: -1, 0, 2. The other split has other text columns.

    We select the second row on the first split, then we make click on the column and it changes his value; but when we select the second row on the second split and we want to change the value of the column on the first split, we must to make click twice.

    The issue is that We are migratting this from Visual Basic 6 (on a TDBGrid) and this behavior does not happend.

    Attach: WindowsGrillaNet:.net example. and WindowsGrillaVB6:vb6 example.

    WindowsGrillaNet.zipWindowsGrillaVB6.zip

  • Posted 18 January 2022, 4:18 am EST

    Hi,

    This behavior happens because the Grid changes focus to the clicked split on the first click and then cycles the value items on the second click. To achieve your required behavior, you can handle the MouseDown event to manually change the currently focused split using the SplitIndex property, so that the single click can be used to cycle the value items directly. Kindly refer to the attached sample showing the same.

    Regards,

    Avnish

    WindowsGrilla_mod.zip

Need extra support?

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

Learn More

Forum Channels