Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8987999
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:55:24+00:00 2026-06-15T21:55:24+00:00

I would like to have a Form with a table in it. The first

  • 0

I would like to have a Form with a table in it.
The first row will describe a Scale.
In each cell in the table, there will be a a checkBox button, that will have my choice. (only one can be chosen (validation))

              **1**             **2**           **3**
a)______________checkBoxbttn_____________________   checkBoxbttn____________________              V

b)     ____________  checkBoxbttn___________________________        V        ___________________      checkBoxbttn

After marking only one checkBox in every row (validation), I’ll need to save each row’s choose in a parameter, for future use.
For the example above: int a = 3; int b = 2;

How can I implement that?
How the validations looks like?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T21:55:25+00:00Added an answer on June 15, 2026 at 9:55 pm

    I suggest you to use a TableLayoutPanel with one column and any number of rows. In each cell, place a Panel. In each panel, place three RadioButton controls, to ensure that only one among those is selected.

    To know which RadioButton is selected, you can iterate through each Panel’s controls and returning the first one checked.

    Example:

    private void button1_Click(object sender, EventArgs e)
        {
            foreach (var row in tableLayoutPanel1.Controls)
            {
                var panel = row as Panel;
                if (panel == null) continue;
                var checkedButton = 
                    panel.Controls.OfType<RadioButton>()
                        .FirstOrDefault(r => r.Checked);
                if (checkedButton == null) continue;
                //Process your radiobutton here.
            }
        }
    

    To assign a specific value to a RadioButton, I would create a class deriving from it, with a property representing your value.

    Example:

    class ScaleRadioButton : RadioButton
    {
        public int MyScale { get; set; }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to have a form that gets output into a table. The
I would like to have Ajax form in Rails so i'm using form_remote_tag. The
I would like to have a form that can submit to two different action
I have a Rails form for email, and I would like to have auto-completion
I would like to have a window with a simple form (radio buttons and
I would like to have a resize indication on a windows forms Form (the
We have a form which uses the JQuery Validation Plugin and would like to
I have a form that has label values that I would like to pass
I have a form with two selectfields. I would like that when something is
I have a form which includes a data sheet. I would like to make

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.