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 08:08 AM UTC

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 12:12 PM UTC

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 02:14 PM UTC

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

Loader.
Up arrow icon