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

Current Cell Border

Is there any way to turn off the "CurrentCell" border for specific cells? In particular, I want it for all the cells except the row and column headers. Is there something I can do in the SelectionChanged event? Thanks. Pete

2 Replies

Administrator July 21, 2004 11:01 AM UTC

You can handle the DrawCurrentCellBorder event and set e.Cancel = true for any cell you do not want to see a currentcell border. SelectionsChanging does not involve the currentcell. Instead, it relates to the ranges that are being selected as you drag in the grid. CurrentCellMoving is the event that involves changing the location of the currentcell.

Administrator July 21, 2004 11:06 AM UTC

Thanks. That''s perfect.
Loader.
Live Chat Icon For mobile
Up arrow icon