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 Rowcommand Problem

GridView Rowcommand Problem

Scheduled Pinned Locked Moved ASP.NET
helptutorial
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.
  • S Offline
    S Offline
    soniasan
    wrote on last edited by
    #1

    I GridView I added the button "Send Mail" Now "Send Mail" button starts appearing on each rows . When i click on that button based on row value i want do some processing . Please tell in which event and how to do that. Please help me to write start up code...

    _ A 2 Replies Last reply
    0
    • S soniasan

      I GridView I added the button "Send Mail" Now "Send Mail" button starts appearing on each rows . When i click on that button based on row value i want do some processing . Please tell in which event and how to do that. Please help me to write start up code...

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

      I think you can use Rowcommand event. This you have mentioned in the subject line also but have not mentioned that what exactly is the problem you are getting.

      Apurva Kaushal

      1 Reply Last reply
      0
      • S soniasan

        I GridView I added the button "Send Mail" Now "Send Mail" button starts appearing on each rows . When i click on that button based on row value i want do some processing . Please tell in which event and how to do that. Please help me to write start up code...

        A Offline
        A Offline
        anada8886
        wrote on last edited by
        #3

        On RowDataBound event set some Id value to HiddenField in each row. And then on the button click event you can check for the hiddenField's value and then take appropriate action, meant particularly for that row.

        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