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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. GridView Row Selection

GridView Row Selection

Scheduled Pinned Locked Moved ASP.NET
helpdatabasetutorial
3 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.
  • I Offline
    I Offline
    Illegal Operation
    wrote on last edited by
    #1

    Hi! I have a Stored Procedure that groups information by date and calculate the amount of hours. On the Page_Load method I execute the Stored Procedure and then Display a GridView containing the Date and Total Hours. The problem I am having is that I have added a button and when you click on it, it should get the value from the Date cell. For example: If you click on the 20/01/2010 row then all the entries for that date should be displayed in another gridview. Thanks for the help!

    Illegal Operation

    P A 2 Replies Last reply
    0
    • I Illegal Operation

      Hi! I have a Stored Procedure that groups information by date and calculate the amount of hours. On the Page_Load method I execute the Stored Procedure and then Display a GridView containing the Date and Total Hours. The problem I am having is that I have added a button and when you click on it, it should get the value from the Date cell. For example: If you click on the 20/01/2010 row then all the entries for that date should be displayed in another gridview. Thanks for the help!

      Illegal Operation

      P Offline
      P Offline
      Pranay Rana
      wrote on last edited by
      #2

      so on itemcommand or selectionchange event of gridview fire one query with date criteria and try to bind your second grid view by fetching data form the database hope this will work for you

      1 Reply Last reply
      0
      • I Illegal Operation

        Hi! I have a Stored Procedure that groups information by date and calculate the amount of hours. On the Page_Load method I execute the Stored Procedure and then Display a GridView containing the Date and Total Hours. The problem I am having is that I have added a button and when you click on it, it should get the value from the Date cell. For example: If you click on the 20/01/2010 row then all the entries for that date should be displayed in another gridview. Thanks for the help!

        Illegal Operation

        A Offline
        A Offline
        April Fans
        wrote on last edited by
        #3

        Hi, Do you add a button in every row?? I think you can bind the data value to the button. Then you can do other things.

        April Comm100 - Leading Live Chat Software Provider

        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