Datagridview - Tabpage freezing on TabControl

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
jvierra
Posts: 14553
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: Datagridview - Tabpage freezing on TabControl

Post by jvierra »

Sorry but I do not have the time to decode what you are trying to do. If this is critical then consider hiring a consultant with Forms experience. This is what I do for money. Forums are for questions and not for private consulting. If you can ask a specific question I will help you.

As I said. Run in the debugger or use trace statements to find out where you are getting hung when clicking on a tab. There is no reason for a tab to take time to display when clicked. There must be some event that is getting executed. Perhaps you have broken code somewhere. A missing closure can cause all kinds of strange things to happen.

User avatar
angelofstealth
Posts: 67
Joined: Wed Feb 13, 2013 4:26 pm

Re: Datagridview - Tabpage freezing on TabControl

Post by angelofstealth »

This article solved my problem by setting the datagridviews, no more freezing.

from:
AutoSizeColumnsMode: AllCells
AutoSizeRowsMode: AllCells

To:
AutoSizeColumnsMode: DisplayedCells
AutoSizeRowsMode: DisplayedCells

User avatar
angelofstealth
Posts: 67
Joined: Wed Feb 13, 2013 4:26 pm

Re: Datagridview - Tabpage freezing on TabControl

Post by angelofstealth »

Wasn't asking for private consulting, believe i did ask a question. But solved on my own using the company forums. Already answered the question why i couldn't use the debugger, so looks like my comments in regards to that was missed. No offense i really wonder if you are in wrong line of work with the negative/bad attitude/condescending responses you make on these forums. The code was provided to further assist what the text/explanation was not relaying. These are the only forums where i have ever experienced this type of feedback on a purchased product. Anyways, thanks

jvierra
Posts: 14553
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: Datagridview - Tabpage freezing on TabControl

Post by jvierra »

Windows updates are a small table by all standards.

jvierra
Posts: 14553
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: Datagridview - Tabpage freezing on TabControl

Post by jvierra »

angelofstealth wrote:Wasn't asking for private consulting, believe i did ask a question. But solved on my own using the company forums. Already answered the question why i couldn't use the debugger, so looks like my comments in regards to that was missed. No offense i really wonder if you are in wrong line of work with the negative/bad attitude/condescending responses you make on these forums. The code was provided to further assist what the text/explanation was not relaying. These are the only forums where i have ever experienced this type of feedback on a purchased product. Anyways, thanks
I see no reason for that to help if you have less than about 1000 rows. I would NOT set rows to autosize because it is unnecessary.

You question made it sound like there was some huge delay. It the table was loaded and not displayed then it will always take a second or two to display the fist time.

Yes - you definitely should search for answers before asking as most of the time the answer will pop up.

jvierra
Posts: 14553
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: Datagridview - Tabpage freezing on TabControl

Post by jvierra »

angelofstealth wrote:Wasn't asking for private consulting, believe i did ask a question. But solved on my own using the company forums. Already answered the question why i couldn't use the debugger, so looks like my comments in regards to that was missed. No offense i really wonder if you are in wrong line of work with the negative/bad attitude/condescending responses you make on these forums. The code was provided to further assist what the text/explanation was not relaying. These are the only forums where i have ever experienced this type of feedback on a purchased product. Anyways, thanks
I am sorry but technical forums are no customer support or help desks. If you can't provide a simple example of an issue it will be very hard for anyone to be able to answer a question like you asked.

If you have product concerns then you need to post in the SAPIEN product forum. This is not a Sapien customer support forum. It is a community support forum manned by volunteers. We can try to answer your questions but there is no SLA here. I am not a Sapien employee. I am consultant with 30+ years of experience with Windows and most other operating system. I cannot guess at the answer to every question you might ask. If there is enough information ad it is asked in a specific way with a simple example then the questions are easy to answer. The issue as asked can be caused by many things. The debugger is the fastest way to find the issue. If you can't run under the debugger and I cannot run your code how can I discover an answer?

I am glad you found a solution.

User avatar
angelofstealth
Posts: 67
Joined: Wed Feb 13, 2013 4:26 pm

Re: Datagridview - Tabpage freezing on TabControl

Post by angelofstealth »

Windows updates are a small table by all standards....
WRONG!
[/b][/u]

FYI, each computer/server can have over 200 listings pending on the operating system patch cycle/deployed operating system. So 200 listings times 5 computers will put you at a 1000 or more. Which i was pulling more than 5. So yes, again, the forum article did help cause i have well over 1000 objects/rows in the table/datagridview.

You assume a lot, when you state technical forums are no customer support or help desk forums. Other technical forums i have used for other products never ever ran into this, especially on a purchased product. So I will assume that your perception of technical forums is being negative/bad attitude/condescending to posts made to make you feel good.

jvierra
Posts: 14553
Joined: Tue May 22, 2007 9:57 am
Contact:

Re: Datagridview - Tabpage freezing on TabControl

Post by jvierra »

As I noted I cannot guess at how you form is working. If you are constantly adding many things to a grid then it may be slow. Form you post that was not clear. Your form just looks like it display one computer at a time.

We cannot decode or guess at a complicated 2000+ line script. It is beyond the scope of most technical forums.

Locked