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

How to remove the selection border when the focus is moved out of the grid

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

1 Reply

PP Praveena P Syncfusion Team 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.


Loader.
Up arrow icon