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. Error in editing gridview

Error in editing gridview

Scheduled Pinned Locked Moved C#
helpquestion
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
    myinstincts
    wrote on last edited by
    #1

    I databinded the gridview to datatable and displayed the fields.But the edit of gridview is not working..I am getting the following error. 'The GridView 'GridView2' fired event RowEditing which wasn't handled.' Can anybody help me with this?

    A 1 Reply Last reply
    0
    • M myinstincts

      I databinded the gridview to datatable and displayed the fields.But the edit of gridview is not working..I am getting the following error. 'The GridView 'GridView2' fired event RowEditing which wasn't handled.' Can anybody help me with this?

      A Offline
      A Offline
      ankit zaveri
      wrote on last edited by
      #2

      For this You have to register Gridview2_RowEditing Event in Code behind. For example : protected void GridView2_RowEditing(object sender, GridViewEditEventArgs e) { //Write your editing Code here. } And for cancelling editing, You need to register Gridview2_RowCancellingEdit event. For Example : protected void GridView2_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e) { }. You can visit MSDN for further information http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.rowediting.aspx[^] Hope this will make sense to you. Ankit Zaveri

      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