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 Problem

Gridview Problem

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

    Hi I have one gridview control.I have taken one button as Item tamplete,command name is "Delete". I have created one function: protected void gvUser_DeleteCommand(object sender,GridViewCommandEventHandler e) { Response.Write("hi"); } where I call this function?I was trying to call on "OnRowDeleted","OnRowCOmmand" but generates an error "No overload for 'gvUser_DeleteCommand' matches delegate 'System.Web.UI.WebControls.CommandEventHandler'" Pls if u have any solution,as early as possible reply me. Thanks monika

    C 1 Reply Last reply
    0
    • M monika_vasvani

      Hi I have one gridview control.I have taken one button as Item tamplete,command name is "Delete". I have created one function: protected void gvUser_DeleteCommand(object sender,GridViewCommandEventHandler e) { Response.Write("hi"); } where I call this function?I was trying to call on "OnRowDeleted","OnRowCOmmand" but generates an error "No overload for 'gvUser_DeleteCommand' matches delegate 'System.Web.UI.WebControls.CommandEventHandler'" Pls if u have any solution,as early as possible reply me. Thanks monika

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Ah - you need to read the docs.

      monika_vasvani wrote:

      GridViewCommandEventHandler e)

      This will be an eventargs, probably an overload, but it sure isn't the eventhandler that is passed in to the method. That's what the error was telling you. I'd guess at GridRowCommandEventArgs e, but check MSDN.

      Christian Graus Driven to the arms of OSX by Vista.

      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