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

How can i get cell clicked events before celleditingcomplete event

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

3 Replies

AD Administrator Syncfusion Team July 18, 2003 03: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);
	}
}


RD Rajamani David September 8, 2003 07: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);
> 	}
> }
> 


AD Administrator Syncfusion Team September 8, 2003 09: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

Loader.
Live Chat Icon For mobile
Up arrow icon