Bug: Datagridview freezes

Topics related to the Krypton Toolkit.

Moderators: Phil Wright, Chris Porter

Bug: Datagridview freezes

Postby Stoffel » Sun Apr 23, 2006 12:08 am

Hi,

First things first. Great component.

About the bug:
I am making a program with an "outlook look". On the left side I have a menu. When an item gets clicked some splitcontainers get visible=false and others get visible=true (I think that the problem lies somewhere in here).

When I start my program everything works just fine. But when I click a menu item and another view comes up, my datagridviews on that view freezes. They work just fine, but when I click on another row, the selection stays on the same row (although that the grid click action does process the right row).

This happens with all the datagridviews. The only solution is to click on the header, or the scrollbar, and the datagridview will show the selection on the selected row.

The weird thing is that when I started making the program I didn't had any problems with this. The more I advanced the more datagridviews had these problems, and now all my datagridviews are affected with this problem. Deleting them and add them again doesn't fix the problem.
Also, deleting the Krypton headergroup and adding it again doesn't help either.

Does anyone has a similar problem, and if yes, did you solve it, and how?
I hope I explained the problem clearly enough.
Stoffel
 

Postby Phil Wright » Sun Apr 23, 2006 12:22 pm

First of all I would suggest you try replacing all of the Krypton controls with the Windows.Forms version. So replace the KryptonSplitContainer instances with the standard SplitContainer control. You should be able to do this with a fairly quick find and replace.

If the code then works as expected then we have isolated the issue as being somewhere in the Krypton toolkit. If the problem still perists the same then it would indicate the problem is either with the standard controls or something you are doing in your application.

Can you give that a try and let me know how you get on?
Phil Wright
Site Admin
 
Posts: 2720
Joined: Thu Apr 13, 2006 2:55 pm
Location: Melbourne, Australia

Postby Stoffel » Mon Apr 24, 2006 2:32 am

Hi, thanks for your reply.

I've done what you asked, and everything worked just fine.
I also checked on the internet for similar problems, and found nothing.
Stoffel
 

Postby Phil Wright » Mon Apr 24, 2006 11:09 am

Can you create a simple test application that demonstrates the problem and then email it to me? Then I will debug it and resolve the issue for you.

phil.wright@componentfactory.com

Thanks
Phil
Phil Wright
Site Admin
 
Posts: 2720
Joined: Thu Apr 13, 2006 2:55 pm
Location: Melbourne, Australia

same problem

Postby corradKrypton » Fri Apr 28, 2006 1:51 am

Hi Phil,
I have the same problem when I use krypton splitcontainer and when the pannel on which is te dbg is collapsed before is filled.

So if you need an other example tell me and i try to do it.

In the while, a big thanks for your job.

Corrado
PS: I hope my english is clear enough.
corradKrypton
 

Postby Phil Wright » Fri Apr 28, 2006 9:55 am

Thanks, if you could create a sample that shows the problem and then email it to me then I can debug through the issue to try and resolve it.

phil.wright@componentfactory.com

C# or VB.NET are fine, whichever is best for you . Thanks.
Phil Wright
Site Admin
 
Posts: 2720
Joined: Thu Apr 13, 2006 2:55 pm
Location: Melbourne, Australia

Postby Stoffel » Fri Apr 28, 2006 6:44 pm

Test Application sended.

The problem occurs whenever you hide the splitContainer and make it visible again.
Stoffel
 

Postby Phil Wright » Fri Apr 28, 2006 10:14 pm

Thanks, I've spent the last couple of hours trying to solve the issue but with no luck. If you hide the DataGridView itself and then show it again it works fine. If you hide and show the KryptonHeaderGroup it is inside then again not problem. If you use the Pane1Collapsed property on the KryptonSplitContainer then it again hides and then reshows.

But for some odd reason the hide and show of the KryptonSplitContainer causes the repainting of the DataGridView to stop until you resize it again. At the moment I cannot find a reason for the issue because the KryptonSplitContainer does not do anything interesting on being shown or hidden.
Phil Wright
Site Admin
 
Posts: 2720
Joined: Thu Apr 13, 2006 2:55 pm
Location: Melbourne, Australia


Return to Krypton Toolkit

Who is online

Users browsing this forum: No registered users and 2 guests