Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
685
edit cell on second click
posted

Hi,
i use multiband ultragrid,
i need to edit cell only after second cell click (like an editable tree Windows control)

At first click the ROW must be selected

At second click the CELL must be selected


How to setup grid to achieve this behavior?

Thank you very much

  • 23930
    Offline posted

    Hi,

    I am just checking about the progress of this issue. Let me know if you need my further assistance on this issue.

    Thank you for using Infragistics Components.

  • 23930
    Suggested Answer
    Offline posted

    Hi,

    Thank you for posting in our forums.

    What you could do in order to achieve this functionality is to first set the CellClickAction for the grid to be RowSelect. Than use the CellClick event to keep a reference for the last clicked cell. If the cell in the CellClick event is the same as the last clicked cell, activate the cell and then use the PerformAction method of the grid to enter edit mode. Additionally you may want to use the Leave event of the grid to remove the reference to the last clicked cell.

    I have attached a sample in order to demonstrate this approach. Please take a look at it and let me know if this is what you are looking for.

    Please let me know if you have any additional questions.

    WG_SecondClickEditMode.zip