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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to change border of the selected range ?

Thread ID:





89468 Aug 25,2009 01:03 PM UTC Aug 25,2009 08:06 PM UTC WPF 1
Tags: GridControl
Asked On August 25, 2009 01:03 PM UTC

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 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.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon