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.

How can i get cell clicked events before celleditingcomplete event

Thread ID:

Created:

Updated:

Platform:

Replies:

5806 Jul 17,2003 07:42 PM Sep 8,2003 10:14 AM Windows Forms 3
loading
Tags: GridControl
Peter
Asked On July 17, 2003 07:42 PM

How can i catch cellclick events before CurrentCellEditingComplete event fires. TIA, Peter

Administrator [Syncfusion]
Replied On July 18, 2003 04:08 AM

In general, you cannot change the order of events. Doing so, would break how things work. So, you have to try to determine what you need in some other manner. For example, if the reason you want to do what you described is that you need to know where you are moving to in CurrentCellEditingComplete, then you can determine this. But you cannot change the order that events fire. Here is a little snippet that shows how you can tell where you are going in CurrentCellEditingComplete.
private void gridControl1_CurrentCellEditingComplete(object sender, System.EventArgs e)
{
	GridCurrentCell cc = this.gridControl1.CurrentCell;
	if(cc.IsInMoveTo)
	{
		Console.WriteLine("EditingComplete moving to {0},{1}", cc.MoveToRowIndex, cc.MoveToColIndex);
	}
}

Rajamani David
Replied On September 8, 2003 08:12 AM

Hi, What event handler I have to attach for this "CurrentCellEditingComplete".? Thanks Raj > In general, you cannot change the order of events. Doing so, would break how things work. > > So, you have to try to determine what you need in some other manner. For example, if the reason you want to do what you described is that you need to know where you are moving to in CurrentCellEditingComplete, then you can determine this. But you cannot change the order that events fire. > > Here is a little snippet that shows how you can tell where you are going in CurrentCellEditingComplete. > >
> private void gridControl1_CurrentCellEditingComplete(object sender, System.EventArgs e)
> {
> 	GridCurrentCell cc = this.gridControl1.CurrentCell;
> 	if(cc.IsInMoveTo)
> 	{
> 		Console.WriteLine("EditingComplete moving to {0},{1}", cc.MoveToRowIndex, cc.MoveToColIndex);
> 	}
> }
> 

Administrator [Syncfusion]
Replied On September 8, 2003 10:14 AM

It is the CurrentCellEditingComplete event. Private Sub GridDataBoundGrid1_CurrentCellEditingComplete(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridDataBoundGrid1.CurrentCellEditingComplete End Sub

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.

;