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.

DataBoundGrid How to disable individual cell selection?

Thread ID:

Created:

Updated:

Platform:

Replies:

11842 Mar 16,2004 06:48 PM Mar 17,2004 05:19 AM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On March 16, 2004 06:48 PM

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

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

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.

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.

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.

;