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 : Nov 16th 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:

Created:

Updated:

Platform:

Replies:

115147 Dec 30,2013 11:46 AM UTC Jan 2,2014 04:07 AM UTC WinForms 1
loading
Tags: GridControl
Nick
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?  

CellFocus_f272cf61.zip

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

Hi Nick ,

 

Thanks for your interest in Syncfusion products.

 

 

Query:

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.

 

Code:

 

this.gridControl1.ShowCurrentCellBorderBehavior = GridShowCurrentCellBorder.WhenGridActive;

 

 

Please let me know if you have any concerns.

 

Regards,                                                                 

Praveena.


CONFIRMATION

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.

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

;