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
245
Selecting readonly rows
posted

Hello.

I'm trying to toggle individual rows in my grid between editable and readonly. The columns in my grid have different values for the CellActivation property.

When a row is in the editable state its cells shall be able to be activated individually. But when in the readonly state the row shall be selected (and highlighted) instead of the cell the user clicked on.

Is there any chance I can achieve this kind of behavior?

Many thanks.

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi Marcell,

    I need a bit more info. How are you toggling the state of the row from editable to ReadOnly? What property settings are you using, exactly? And what settings are you using for CellActivation?

    It sounds like what you need is the CellClickAction property, but this property doesn't apply on a row, it's on the Override so it applies to the whole band. There's no way to set it for a single row. So you will most likely have to write some code and handle the events of the grid to select the row when the user clicks on a cell in a non-editable row. I would try the CellClick or MouseDown events, but it's tough to say for sure without knowing exactly what settings you are using so I can try it out.

Children