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. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Repainting of group headers in Grid grouping control

Thread ID:

Created:

Updated:

Platform:

Replies:

30409 Jun 17,2005 08:26 AM UTC Jun 17,2005 11:15 AM UTC WinForms 3
loading
Tags: GridControl
Majesh Peedikakandy
Asked On June 17, 2005 08:26 AM UTC

hi, i have problems with the repainting of grouping grid.In the click event of the grid , i am doing some backgroung work and loading another form.This takes a few seconds and till the new form is loaded , the headers of the grouping grid gets messed up and moves down. I have attached a screen shot. please help. header1_9116.zip

Administrator [Syncfusion]
Replied On June 17, 2005 09:31 AM UTC

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();
}

Majesh Peedikakandy
Replied On June 17, 2005 10:26 AM UTC

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();
>}
>

Administrator [Syncfusion]
Replied On June 17, 2005 11:15 AM UTC

Can you upload a sample project showing this problem so we can work with it here?

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.

Warning Icon 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.Close Icon

;