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.

ActivateCurrentCellBehavior ?

Thread ID:

Created:

Updated:

Platform:

Replies:

29549 May 27,2005 10:47 AM May 27,2005 11:46 AM Windows Forms 1
loading
Tags: GridControl
Philip Bishop
Asked On May 27, 2005 10:47 AM

Is there a way that you can set the ActivateCurrentCellBehavior so that its different for each colum in a grid? Say you want col1 and col2 to be DblClickOnCell and you want 3 and 4 to be SelectAll. Is this possible?

Administrator [Syncfusion]
Replied On May 27, 2005 11:46 AM

You can try dynamically setting teh property in CurrentCellMoving.
private void gridControl1_CurrentCellMoving(object sender, GridCurrentCellMovingEventArgs e)
{
	if(e.ColIndex == 1 || e.ColIndex == 2)
	{
		this.gridControl1.ActivateCurrentCellBehavior = GridCellActivateAction.DblClickOnCell;
	}
	else
	{
		this.gridControl1.ActivateCurrentCellBehavior = GridCellActivateAction.SelectAll;
	}
}

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.

;