Adding a RadioButton control to a DataGridView

Posted on 2014-03-17
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?

Question by:BlakeMcKenna
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
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.  


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.


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.
LVL 83

Expert Comment

ID: 39936771
See if you can follow this MSDN article

Author Comment

ID: 39936814
See screenshot!
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

LVL 83

Expert Comment

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

Author Comment

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.

Author Comment

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.
LVL 83

Accepted Solution

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.

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

751 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