Quick update:
I think that I foung what''s going on the debugger itself creates this strange delay...
Dargon
>Hi Madhan,
>Sorry for delayed feedback, I was buried with another issue...
>I''ll try to describe here the way the code works:
>
>
>private void followerGrid_CurrentCellValidating (object sender, CancelEventArgs e)
> {
> TraceHelp.WriteFormat("***StartTime"+System.DateTime.Now.ToString("dd/mm/yyyy hh:mm:ss.ff"));
>
>Do some stuff here...
>
>UpdateDatabase(args[]) // this method updates tables in database with value from followerGrid.CurrentCell
>
>RefreshGrid()//followerGrid is databound control, so here we need to get updated dataset and bind followergrid to it and Update grid
>
>...Do other stuff...
>
>TraceHelp.WriteFormat("endTime+" "+System.DateTime.Now.ToString("dd/mm/yyyy hh:mm:ss.ff"));
>} //end CurrentCellValidating event
>
>
>private void followerGrid_CurrentCellMoved(object sender, Syncfusion.Windows.Forms.Grid.GridCurrentCellMovedEventArgs e)
> {
> TraceHelp.WriteFormat("Checktime"+System.DateTime.Now.ToString("dd/mm/yyyy hh:mm:ss.ff"));
>
>Do something...
>}//end CurrentCellMoved event
>
>
>So I update grid on CurrentcellValidating event.
>Whet i analyzed timestamps I noticed that difference between EndTime and StartTime is about 2 sec, which is Ok, because we do some slow stuff here. But time difference between EndTime and checkTime is also about 2 sec, however debugger does not show any steps between these 2 events. I found that Refreshgrid() is the method which causes this delay, so it looks that grid gets updated again after Currentcellvalidating event is finished. Debugger does not show it either. Is is something I am missing when trying to update grid on CurrentCellvalidating event?
>Thanks,
>Dargon
>
>
>
>
>>Hi Dargon,
>>
>>Sorry for the delayed response. Here is the
document in MS word .doc format. We need some clarifications for the following questions.
>>
>>1. What version of Syncfusion grid and vs.net are you using?
>>2. What are the other events that you are using?
>>3. In which event, are the grids getting updated?
>>
>>We have tried our best to reproduce the issue but, could not. It would be better if you could provide us with more details. If possible modify the
attached sample, to reproduce the issue.
>>
>>Best regards,
>>Madhan.