We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

How to change border of the selected range ?

Hi,
How can I apply a border property (thickness and/or brush) to a selected range (and not to each cell inside the range) ?

1 Reply

CB Clay Burch Syncfusion Team August 25, 2009 08:06 PM UTC

You can handle the PrepareRenderCells and SelectionsChanged events to do this. In PrepareRenderCell, if the e.Style is for an edge cell on the selection, then set its border. In SelectionsChanged event, trigger redrawing the cells so the PrepareRenderCells event is raised so the borders can be set.

Here is a sample.



WpfApplication18_38f3042a.zip

Loader.
Live Chat Icon For mobile
Up arrow icon