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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DataBoundGrid How to disable individual cell selection?

Thread ID:





11842 Mar 16,2004 11:48 PM UTC Mar 17,2004 10:19 AM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On March 16, 2004 11:48 PM UTC

How do I disable cell selection in a DataBoundGrid? Thanks for all the help

Administrator [Syncfusion]
Replied On March 17, 2004 10:19 AM UTC

If you mean not being able to drag individual cells and select them, then you can turn off the Cell flag in the grid.AllowSelections property. this.gridControl1.AllowSelection = this.gridControl1.AllowSelection & ~GridSelectionFlags.Cell; If you mean never seeing a currentcell, then try these properties: this.gridDataBoundGrid1.ActivateCurrentCellBehavior = GridCellActivateAction.None; this.gridDataBoundGrid1.ShowCurrentCellBorderBehavior = GridShowCurrentCellBorder.HideAlways; If you mean the current cell not showing the same color as other cells in the row when you select the row, then try handling the CurrentCellActivating event, and setting e.ColIndex = 0 in teh handler.


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

Live Chat Icon For mobile
Live Chat Icon