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 remove the selection border when the focus is moved out of the grid

Thread ID:





115147 Dec 30,2013 11:46 AM UTC Jan 2,2014 04:07 AM UTC WinForms 1
Tags: GridControl
Asked On December 30, 2013 11:46 AM UTC

When the grid got focus, there is a border around the activated cell, but when the grid lost focus, the cell is still covered by the border. How to remove the border of cell when the grid lost focus?  


Praveena P [Syncfusion]
Replied On January 2, 2014 04:07 AM UTC

Hi Nick ,


Thanks for your interest in Syncfusion products.




To remove the border of cell when the grid lost focus

Setting ShowCurrentCellBorderBehavior property with WhenGridActive option highlights the current cell's border  only when the grid is under focus.


So, kindly make use of the below code.




this.gridControl1.ShowCurrentCellBorderBehavior = GridShowCurrentCellBorder.WhenGridActive;



Please let me know if you have any concerns.





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