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.

Disable cell highlighting on GDBG

Thread ID:

Created:

Updated:

Platform:

Replies:

11122 Feb 24,2004 07:04 AM Feb 27,2004 09:28 AM Windows Forms 4
loading
Tags: GridControl
Doug Lind
Asked On February 24, 2004 07:04 AM

Hi, I am using GDBG to show the contents of datatables. The grids are set as no adds, deletes or edits, but you can still select cells and the hightlight as if an edit is possible, though no changes are accepted. If a date field is selected, it even opens the datetime picker. The app supports column dragging and row selection so this must be retained. It also has context menu items that respond to the current row clicked on. Selecting cells is OK, it''s just the highlighting and opening edit controls that is perplexing our clients. Is there a way to turn this behavior off? Thanks, Doug

Administrator [Syncfusion]
Replied On February 24, 2004 08:24 AM

If you want to avoid a cell ever starting to edit, cancel the CurrentCellStartEditing event.
private void gridDataBoundGrid1_CurrentCellStartEditing(object sender, System.ComponentModel.CancelEventArgs e)
{
	e.Cancel = true;
}

Doug Lind
Replied On February 24, 2004 12:08 PM

Thanks Clay, it worked great! >If you want to avoid a cell ever starting to edit, cancel the CurrentCellStartEditing event. > >
>private void gridDataBoundGrid1_CurrentCellStartEditing(object sender, System.ComponentModel.CancelEventArgs e)
>{
>	e.Cancel = true;
>}
>

Chris R
Replied On February 27, 2004 06:55 AM

Is there a way to do this on a per column basis?

Administrator [Syncfusion]
Replied On February 27, 2004 09:28 AM

Try checking grid.CurrentCell.ColIndex to decide whether you want to cancel or not.

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.

;