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. Selected rows in a gridview

Selected rows in a gridview

Scheduled Pinned Locked Moved C#
css
4 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.
  • R Offline
    R Offline
    rakeshs312
    wrote on last edited by
    #1

    Hi all, i have a aspx grid with checkboxes for selecting the rows. I have some rows seleted and unselected rows also. how i can display only selected rows in the selectedindex_changed event of a dropdown Thanks Rk

    V A 2 Replies Last reply
    0
    • R rakeshs312

      Hi all, i have a aspx grid with checkboxes for selecting the rows. I have some rows seleted and unselected rows also. how i can display only selected rows in the selectedindex_changed event of a dropdown Thanks Rk

      V Offline
      V Offline
      vanikanc
      wrote on last edited by
      #2

      Can't your restrict this resultset by controlling the data sent from database? In your select clause to fill this grid, only select the checked ones from the database to begin with?

      R 1 Reply Last reply
      0
      • V vanikanc

        Can't your restrict this resultset by controlling the data sent from database? In your select clause to fill this grid, only select the checked ones from the database to begin with?

        R Offline
        R Offline
        rakeshs312
        wrote on last edited by
        #3

        Hi, there is no status for the selected row in the database . this is an aspx grid. i need to hide the unselected rows Thanks Rk

        1 Reply Last reply
        0
        • R rakeshs312

          Hi all, i have a aspx grid with checkboxes for selecting the rows. I have some rows seleted and unselected rows also. how i can display only selected rows in the selectedindex_changed event of a dropdown Thanks Rk

          A Offline
          A Offline
          Abhinav S
          wrote on last edited by
          #4

          If you don't need the unchecked rows in the datagrid, you can remove them from the datagrid's source as soon as they are unchecked.

          WP Apps - Arctic | XKCD | Calvin | Sound Meter | Speed Dial

          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