C1TrueDbGrid Cell Focus

Posted by: ivan.stanojkovski on 25 February 2024, 5:40 am EST

    • Post Options:
    • Link

    Posted 25 February 2024, 5:40 am EST - Updated 25 February 2024, 5:45 am EST

    Hi

    is it possible programmatically focus on certain cell in C1TrueDbGrid at the end of the text in that cell.

    For example.

    I have a grid with some columns and rows.

    When i finished to editing the current cell and press Enter, I want to automatically focus on the next cell and set the SelectionLength to Max Length of the new focused cell Value.

    Picture with example of wanted case.

    Best regards.

  • Posted 26 February 2024, 12:04 am EST

    Hello,

    You can set the direction after the Enter key is pressed using the ‘DirectionAfterEnter’ property, and you can put a cell in edit mode using the ‘EditActive’ property of C1TrueDBGrid.

    We are sorry, but there is no direct way to put a cell in edit mode after the enter key is pressed. You will have to capture when the Enter key is pressed and then put a cell in edit mode in the RowColChange event. Please refer to the attached sample for the implementation, TrueDBGrid_EditCell.zip.

    Regards,

    Uttkarsh.

  • Posted 26 February 2024, 5:15 am EST

    Thank you for your example and quick response.

    Regards.

Need extra support?

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

Learn More

Forum Channels