Solved

a Red X covers my dgv after a credit card transaction.

Posted on 2012-03-15
5
190 Views
Last Modified: 2012-03-15
After I run a credit card transaction and return to the main form imagine my surprise when a big red X covers the dgv with red borders and a white background.  No dgv can be seen except for the place it is supposed to be

Any help would be appreciated.

Jerry
0
Comment
Question by:JDL129
  • 2
  • 2
5 Comments
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 37726507
You are getting an exception in GDI+, most likely. Are you doing any custom painting on the DGV? If not, the problem may be internal to the DGV.
0
 
LVL 22

Expert Comment

by:p_davis
ID: 37726568
agreed....with the line of reasoning from kaufmed
how do you send/accept transactions to the dgv is it a win tool or a third party?

probably going to have to see all relevant code on this.
0
 

Author Comment

by:JDL129
ID: 37726714
Mr. Davis thanks for the response.

This is a C# control that we use to display sales choices.  We populate it using C# code.  All of this is inside a C# solution.  It looks like the form just doesn't redraw properly.  

Thanks,

Jerry
0
 
LVL 22

Expert Comment

by:p_davis
ID: 37726745
OK, time for some code then =)
0
 

Author Closing Comment

by:JDL129
ID: 37726903
kaufmed!!

You were right on!  I just replaced the  control with a new one and all my troubles went away.

Thanks for all who posted.

Jerry
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now