Solved

Adding a RadioButton control to a DataGridView

Posted on 2014-03-17
7
925 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
Comment Utility
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
Comment Utility
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
Comment Utility
See screenshot!
Screenshot.jpg
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 83

Expert Comment

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

Author Comment

by:BlakeMcKenna
Comment Utility
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
Comment Utility
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
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

743 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

18 Experts available now in Live!

Get 1:1 Help Now