Solved

Adding a RadioButton control to a DataGridView

Posted on 2014-03-17
7
971 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
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

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 …
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

828 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