Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Adding a RadioButton control to a DataGridView

Posted on 2014-03-17
7
Medium Priority
?
1,068 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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 2000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
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…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Integration Management Part 2
Suggested Courses

824 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