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.

CurrentCellMoved, from user or from context change

Thread ID:

Created:

Updated:

Platform:

Replies:

37173 Nov 16,2005 06:23 PM Nov 16,2005 07:21 PM Windows Forms 1
loading
Tags: GridControl
Mark Atkinson
Asked On November 16, 2005 06:23 PM

I''d like to be able to do some things based on whether the user has clicked in a cell or, perhaps, used the arrow keys, tabs or some other keyboard/mouse initiated way of changing the current row in my data bound grid. The CurrentCellMoved event seems reasonable except for the fact that it gets fired when there is some position change in the underlying dataset as well. Is there a way of differentiating between when a user manipulates position directly on the grid and when the grid position changes as a ersult of an underlying dataset change? Preferably without having to create a variety MouseDown and KeyPress event handlers? Thanks in advance!

Administrator [Syncfusion]
Replied On November 16, 2005 07:21 PM

There is not a single event you can catch, but I think you can do it by catching two events.
private void gridDataBoundGrid1_QueryNextCurrentCellPosition(object sender, Syncfusion.Windows.Forms.Grid.GridQueryNextCurrentCellPositionEventArgs e)
{
	Console.WriteLine("Move from inside grid");
}

private void gridDataBoundGrid1_CellClick(object sender, Syncfusion.Windows.Forms.Grid.GridCellClickEventArgs e)
{
	Console.WriteLine("Move from inside grid");
}

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.

;