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.

Grouping grid - edit on double click only

Thread ID:

Created:

Updated:

Platform:

Replies:

27331 Apr 11,2005 12:45 AM May 31,2005 04:37 AM Windows Forms 4
loading
Tags: GridControl
Richard
Asked On April 11, 2005 12:45 AM

Hi Is there a way that I can set up a grouping grid so that a cell only goes into edit mode when the user double clicks a cell, the default is that the cell goes into edit mode when it is clicked once

Administrator [Syncfusion]
Replied On April 11, 2005 05:44 AM

Try setting this property to see if it gives you what you need. this.gridGroupingControl1.TableModel.Options.ActivateCurrentCellBehavior = GridCellActivateAction.DblClickOnCell;

Richard
Replied On April 12, 2005 12:21 AM

Thanks Clay, that is exactly what I wanted

Richard
Replied On May 30, 2005 11:00 PM

Now how can I programmatically start edit mode on a particular cell, I want to do a setup a right click, edit.

Administrator [Syncfusion]
Replied On May 31, 2005 04:37 AM

One way is to call BeginEdit on the currentcell.
private void gridGroupingControl1_TableControlCellMouseUp(object sender, GridTableControlCellMouseEventArgs e)
{
	if(e.Inner.MouseEventArgs.Button == MouseButtons.Right)
	{
		e.TableControl.CurrentCell.BeginEdit();
	}
}

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.

;