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
2690
XamGrid Cellclick
posted

I am having the cell style set in the cell control attached so that its displayed when the page is loaded

When the user changes the row i.e selects the cell from other row it should change the style for that cell and when he changes it again it should set the style of the changed cell to the new style and the one not selected to original style

 

  • 40030
    Offline posted

    Hi, 

    So i'm not really sure what exactly you're looking for. 

    Is it just that you want to change the cell style when it's selected, and to change it back when it's not?

    If so, you can use the CellSelectionChanged event. Or if you're actually talking about Activation and not Selection, you can use the ActiveCellChanging event which will give you the previous cell and the new cell. 

    As for changing the style styles, that should be trivial.  If you need to store off the style that was originally set on the Cell, you can use it's Tag property. 

    -SteveZ