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
2275
CellClickAction.CellSelect always highlights row.
posted

I'm performing some maintenance on an application I did not write, and the former programmer coded the grid so that if you click on a cell, the row highlights and you cannot copy any data in the row.

My approach is to allow the cell to be editable so that the user can copy the content, but first they have to be able to click into the cell.

in the initializeLayout event, I issue a CellSelect with the following:

e.Layout.Bands(0).Override.CellClickAction = CellClickAction.CellSelect

However, the row is always highlighted and I can never click into the cell.

Are there any thoughts out there that might help me fix this problem?

Thank you.

e.Layout.Override.AllowUpdate = DefaultableBoolean.True

  • 20872
    Offline posted

    Hello,

    In this case probably is set somewhere in the code .ActiveRowAppearance and thats why the whole row is highlighted. You could reset this apperance if you like using the Reset() method of it.

    But here you are just setting the selection of the cell, not editing.

    you could comment the following line in order to be able to enter edit mode:

    e.Layout.Bands(0).Override.CellClickAction = CellClickAction.CellSelect

    because by default the cell should enter edit mode when you click it.

    Please let me know if you have any other questions.

    Sincerely,

    Danko

    Developer Support Engineer, MCTS

    Infragistics

    www.infragistics.com/support