Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. bool values and radiobuttons

bool values and radiobuttons

Scheduled Pinned Locked Moved C#
cssquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tthellebuyck
    wrote on last edited by
    #1

    I want to pass bool values(true/false) from a datagrid view to radio buttons to another form. Reason being, I am also passing other values from the grid to another form to edit the data. How could i go about passing a true or false value so when my edit form opens the radiobuttons are populated with either a true or false value, based on what value they hold in my datatable? Thanks

    O 1 Reply Last reply
    0
    • T tthellebuyck

      I want to pass bool values(true/false) from a datagrid view to radio buttons to another form. Reason being, I am also passing other values from the grid to another form to edit the data. How could i go about passing a true or false value so when my edit form opens the radiobuttons are populated with either a true or false value, based on what value they hold in my datatable? Thanks

      O Offline
      O Offline
      originSH
      wrote on last edited by
      #2

      If you mean how do you pass the values to the new form, you can either do it via the constructor or Properties. If you mean how do you set the radiobuttons is the .Checked property.

      T 1 Reply Last reply
      0
      • O originSH

        If you mean how do you pass the values to the new form, you can either do it via the constructor or Properties. If you mean how do you set the radiobuttons is the .Checked property.

        T Offline
        T Offline
        tthellebuyck
        wrote on last edited by
        #3

        Its both actually. I want to be able to select True or False two buttons, then pass that true or false value back to my datagrid. Do you have an example of how I can do that or does it all really depend on how data is passed back to the form?

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups