its still not working..
the problem occurs only when the first row is clicked.
>I think the grid will have to finish its click before you start your long process if the long process is being done on the same thread as the grid. One way you can do this is in the click event event, create a Timer, and set it to fire in 20-30 msecs. Then in the tick event, stop teh timer, un-subscribe to the event, delete the time and then start you long operation.
>
>
>//At the bottom of the click event
>Timer t = new Timer();
>t.Interval = 20;
>t.Tick += new EventHandler(t_Tick);
>t.Start();
>
>//the handler
>private void t_Tick(object sender, EventArgs e)
>{
> Timer t = sender as Timer;
> t.Stop();
> t.Tick -= new EventHandler(t_Tick);
> t.Dispose();
>
> DoYourLongOperation();
>}
>