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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Disable cell highlighting on GDBG

Thread ID:

Created:

Updated:

Platform:

Replies:

11122 Feb 24,2004 12:04 PM UTC Feb 27,2004 02:28 PM UTC WinForms 4
loading
Tags: GridControl
Doug Lind
Asked On February 24, 2004 12:04 PM UTC

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 01:24 PM UTC

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 05:08 PM UTC

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 11:55 AM UTC

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

Administrator [Syncfusion]
Replied On February 27, 2004 02:28 PM UTC

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.

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

;