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.
Unfortunately, activation email could not send to your email. Please try again.

How to change border of the selected range ?

Thread ID:





89468 Aug 25,2009 09:03 AM Aug 25,2009 04:06 PM WPF 1
Tags: GridControl
Asked On August 25, 2009 09:03 AM

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

Clay Burch [Syncfusion]
Replied On August 25, 2009 04:06 PM

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.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.