Solved

Adding a RadioButton control to a DataGridView

Posted on 2014-03-17
7
955 Views
Last Modified: 2014-03-20
I have tried to add a RadioButton control to a DataGridView and am unable to. Is there anyway at all this can be done? I know there is no DataGridViewRadioButton object but just wondered if there is a work-around?

Thanks!
0
Comment
Question by:BlakeMcKenna
  • 3
  • 3
7 Comments
 
LVL 23

Expert Comment

by:Christopher Kile
ID: 39935749
It is clearly possible (see this article from Microsoft's ASP.NET site) to add a RadioButton column to a GridView.  Therefore, it is likely to be a problem in your implementation.  

1.

What did you see that told you adding the RadioButton failed?  If you can, include the actual error message or a captured image that shows the error report.

2.

What is the method you used to add the RadioButton?  Please include source code with the Imports that you used; please obscure anything you consider private such as passwords or directory paths, but please don't delete out any significant code.
This should help us diagnose your issue quickly.
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 39936771
See if you can follow this MSDN article

http://msdn.microsoft.com/en-us/library/aa730882(v=vs.80).aspx
0
 

Author Comment

by:BlakeMcKenna
ID: 39936814
See screenshot!
Screenshot.jpg
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 83

Expert Comment

by:CodeCruiser
ID: 39936899
Have you copied the class code into your project? And is it using any namespace?
0
 

Author Comment

by:BlakeMcKenna
ID: 39937140
What class code are you referring to? Do I need to include it as a reference in my project?
Also...I'm using VB.Net.
0
 

Author Comment

by:BlakeMcKenna
ID: 39939573
Any ideas on this and my screenshot posting? In case I didn't clarify, this is a Windows App and not a Web App. I'm using the DataGridView...not the GridView.
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 39940103
I was referring to DataGridViewRadioButtonCell  class which you can either convert to VB.NET online or put into a C# DLL project and reference in your project.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

773 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