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

Making the grid control''s Accept focus to false

Thread ID:





34203 Sep 6,2005 12:05 PM UTC Sep 8,2005 07:25 AM UTC WinForms 3
Tags: GridControl
Atanu Podder
Asked On September 6, 2005 12:05 PM UTC

Hi, i need to make the grid not to recieve focus, means even if 1.I click on any of its cells the cell should not get focus, 2.The focus should be retained with the the previous control where the focus was previously 3.Also the focus rectangle around the cell should not be visible. I tried creating a control, deriving it form the grid control and in the ctor making the SetStyle selectable to false. But still its accepting focus. Is this a bug??? Or is there any work around to achieve the same??? Thanks, Atanu

Administrator [Syncfusion]
Replied On September 6, 2005 02:30 PM UTC

Hi Atanu, You could try this: this.gridControl1.Enabled=false; Regards, Jeba.

Atanu Podder
Replied On September 8, 2005 06:58 AM UTC

>Hi Atanu, > >You could try this: >this.gridControl1.Enabled=false; > >Regards, >Jeba. Hi, Jeba, I can do that, but thats not what my intension is as making it enabled false would change the look and feel. I want to make the control not to recieve focus but look like an enabled control. Thanks, Atanu

Administrator [Syncfusion]
Replied On September 8, 2005 07:25 AM UTC

Try setting these properties on the grid. this.gridControl1.TableStyle.Enabled = false; this.gridControl1.BaseStylesMap["Header"].StyleInfo.Enabled = false; this.gridControl1.AllowSelection = GridSelectionFlags.None;


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