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

ActivateCurrentCellBehavior ?

Thread ID:

Created:

Updated:

Platform:

Replies:

29549 May 27,2005 02:47 PM UTC May 27,2005 03:46 PM UTC WinForms 1
loading
Tags: GridControl
Philip Bishop
Asked On May 27, 2005 02:47 PM UTC

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

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

;