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
1210
Column lable and row selector color change
posted

Hi,

I want to highlight column header and row selectors for selected cells. (Similar to Excel.) Is there any way I can achieve this in style? I tried to create CellValuepresenter style but I am not able to access label presenter associate to it. 

Parents
No Data
Reply
  • 138253
    Verified Answer
    Offline posted

    Hello,

     

    Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I created a Style for the LabelPresenter in order to handle its Loaded event. In the handler I populate a collection with the LabelPresenters. I also handled the CellActivating and Deactivating events in order to be able to change the Backgrounds of the RecordSelector and the Labels. Please let me know if this helps you or you need further assistance on this matter.

     

    Looking forward for your reply.

    ExcelStyleHighlightFieldAndSelector.zip
Children