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. Web Development
  3. ASP.NET
  4. problem with radionbutton in a datagrid

problem with radionbutton in a datagrid

Scheduled Pinned Locked Moved ASP.NET
helpcss
7 Posts 3 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.
  • S Offline
    S Offline
    Sebastian T Xavier
    wrote on last edited by
    #1

    hi, today i ahave a new doubt. i have created a datagrid and added radio button in the grid. i have used the following code it works very nicely. but the problem is that while debugging i can select(check) more than one row. it is suppossed to select only one row at a time. can you help me to solve the problem. thanks in advance sebastian

    _ P 2 Replies Last reply
    0
    • S Sebastian T Xavier

      hi, today i ahave a new doubt. i have created a datagrid and added radio button in the grid. i have used the following code it works very nicely. but the problem is that while debugging i can select(check) more than one row. it is suppossed to select only one row at a time. can you help me to solve the problem. thanks in advance sebastian

      _ Offline
      _ Offline
      _AK_
      wrote on last edited by
      #2

      You have to use the groupname property of the radio button to achieve that task.

      Best Regards, Apurva Kaushal

      S 1 Reply Last reply
      0
      • _ _AK_

        You have to use the groupname property of the radio button to achieve that task.

        Best Regards, Apurva Kaushal

        S Offline
        S Offline
        Sebastian T Xavier
        wrote on last edited by
        #3

        i have alreday tried it out. but doesn't work. then i have tried to give some id to the radio button like e.item.index=i in the datagrid1_itemcreated event. first time it works but when i click any button any more time it gives the error . please help me.

        _ 1 Reply Last reply
        0
        • S Sebastian T Xavier

          i have alreday tried it out. but doesn't work. then i have tried to give some id to the radio button like e.item.index=i in the datagrid1_itemcreated event. first time it works but when i click any button any more time it gives the error . please help me.

          _ Offline
          _ Offline
          _AK_
          wrote on last edited by
          #4

          You can have a look at This[^]

          Best Regards, Apurva Kaushal

          S 1 Reply Last reply
          0
          • _ _AK_

            You can have a look at This[^]

            Best Regards, Apurva Kaushal

            S Offline
            S Offline
            Sebastian T Xavier
            wrote on last edited by
            #5

            thanks a lot. i will go thrugh this

            _ 1 Reply Last reply
            0
            • S Sebastian T Xavier

              thanks a lot. i will go thrugh this

              _ Offline
              _ Offline
              _AK_
              wrote on last edited by
              #6

              Always welcome.. :)

              Best Regards, Apurva Kaushal

              1 Reply Last reply
              0
              • S Sebastian T Xavier

                hi, today i ahave a new doubt. i have created a datagrid and added radio button in the grid. i have used the following code it works very nicely. but the problem is that while debugging i can select(check) more than one row. it is suppossed to select only one row at a time. can you help me to solve the problem. thanks in advance sebastian

                P Offline
                P Offline
                P A N K A J
                wrote on last edited by
                #7

                you can also add the javascript with the radio buttons in the datagrid. when any radiobutton checked just check all the rows / items of the datagrid in a loop and deselect other radiobuttons.

                Pankaj Gupta (Take it easy)

                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