DataGrid with CheckBox and DataGrid with RadioButton

Posted on 2005-04-09
Last Modified: 2012-05-05
Hi all!

I need to do these following things:

1) Make a DataGrid that will have a template column with a CheckBox bind to a Boolean Column on my Database. I need to allow my user to check the options on the DataGrid and, when the user ends, he will click on a button and the status (Checked, Unchecked) will be saved on my database, indepedently of how many pages my grid has.

2) Make a DataGrid that will have a RadioButton. Only one item could be checked on the entire DataGrid so, when the user checks a new item, the previous checked item will be unchecked. I need to be able to retrieve witch item is selected (indepedently of how many pages my grid has and whose page the selected item is)

Thanks to everyone thar could help me doing this. If there is another technic that give me the same functionality and is better that these mentioned, plese tell.

Thanks all!
Question by:regisdaniel
    LVL 26

    Accepted Solution

    for checkbox - this gives a full explanation of what has to done ...

    for radiobuttons, the code would be similar as for a checkbox, but there is a slight problem .. read the link below for what the problem is and how it can be solved ...

    Author Comment

    Thanks Rejojohny!!!

    This is exactly what i need!!! Thanks for your great support!!!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Training Course: Java/J2EE and SOA

    This course will cover both core and advanced Java concepts like Database connectivity, Threads, Exception Handling, Collections, JSP, Servlets, XMLHandling, and more. You'll also learn various Java frameworks like Hibernate and Spring.

    Suggested Solutions

    Title # Comments Views Activity
    Zoom web page in 2 21
    HTML table 7 38
    ASP.NET MVC Jquery 17 43
    Linking dictionary and columns together 2 33
    In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    758 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

    7 Experts available now in Live!

    Get 1:1 Help Now