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.
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:

Created:

Updated:

Platform:

Replies:

34203 Sep 6,2005 08:05 AM Sep 8,2005 03:25 AM Windows Forms 3
loading
Tags: GridControl
Atanu Podder
Asked On September 6, 2005 08:05 AM

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 10:30 AM

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

Atanu Podder
Replied On September 8, 2005 02:58 AM

>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 03:25 AM

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

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

;