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. Image for the cookie policy date

ActivateCurrentCellBehavior ?

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?

1 Reply

AD Administrator Syncfusion Team May 27, 2005 03:46 PM UTC

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;
	}
}

Loader.
Live Chat Icon For mobile
Up arrow icon