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. Gridview strange question

Gridview strange question

Scheduled Pinned Locked Moved ASP.NET
jsonhelpquestion
2 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.
  • P Offline
    P Offline
    Pankaj Nikam
    wrote on last edited by
    #1

    OK here is the deal. I have a gridview and I have some items in it. I have checkboxes on the extreme left (the first column) which enables the user to make selection. Now the thing is that I have achieved a way to get the row on which it is selected and I turn the row to a different color lets say orange. Now I want to make sure that the when the user selects another checkbox, the rest of the checkboxes should automatically be deselected. Now I know you will suggest me to use a radio button instead however I wish to do it with checkbox itself... Any kind of help will be appreciated... OK I agree this is a strange question but strange things are the best way to learn something. And this is not a homework question. I am banging my head to get this solved... :D

    Always Keep Smiling. Yours Pankaj Nikam

    B 1 Reply Last reply
    0
    • P Pankaj Nikam

      OK here is the deal. I have a gridview and I have some items in it. I have checkboxes on the extreme left (the first column) which enables the user to make selection. Now the thing is that I have achieved a way to get the row on which it is selected and I turn the row to a different color lets say orange. Now I want to make sure that the when the user selects another checkbox, the rest of the checkboxes should automatically be deselected. Now I know you will suggest me to use a radio button instead however I wish to do it with checkbox itself... Any kind of help will be appreciated... OK I agree this is a strange question but strange things are the best way to learn something. And this is not a homework question. I am banging my head to get this solved... :D

      Always Keep Smiling. Yours Pankaj Nikam

      B Offline
      B Offline
      Blue_Boy
      wrote on last edited by
      #2

      While you are looping items on GridView make unselect for each row except selected row. Or put your code here to see what you did so far.


      I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post. www.cacttus.com

      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