Gridview RowUpdating Not Firing

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • nick chan

    Gridview RowUpdating Not Firing

    Hi i run into some difficulties getting rowupdating to fire when
    clicking Update link/button on gridview

    I set datasource at runtime, basically a datatable

    Edit and Cancel works. I don't know why RowUpdating just doesn't fire.
  • nick chan

    #2
    Re: Gridview RowUpdating Not Firing

    I just checked that even the RowCommand does not fire when clicking
    update

    On Feb 25, 5:45 pm, nick chan <zzzxtr...@gmai l.comwrote:
    Hi i run into some difficulties getting rowupdating to fire when
    clicking Update link/button on gridview
    >
    I set datasource at runtime, basically a datatable
    >
    Edit and Cancel works. I don't know why RowUpdating just doesn't fire.

    Comment

    • nick chan

      #3
      Re: Gridview RowUpdating Not Firing

      I just found out something

      After i click edit, i will get Update and Cancel button

      When I viewsource, I get this


      <input type="submit" name="GridView1 $ctl07$ctl01" value="Update"
      onclick="javasc ript:WebForm_Do PostBackWithOpt ions(new
      WebForm_PostBac kOptions(&quot; GridView1$ctl07 $ctl01&quot;,
      &quot;&quot; , true, &quot;&quot; , &quot;&quot; , false, false))" /
      >&nbsp;<input type="button" value="Cancel"
      onclick="javasc ript:__doPostBa ck('GridView1', 'Cancel$5')"

      Cancel Works. But Update doesnt. Why? perhaps
      WebForm_DoPostB ackWithOptions is not constructed properly. A Bug?
      Perhaps. So when I manually execute "__doPostBack(' GridView1','Upd ate
      $5')", it will call RowUpdating. Weird ! Why does this happen?



      On Feb 25, 6:51 pm, nick chan <zzzxtr...@gmai l.comwrote:
      I just checked that even the RowCommand does not fire when clicking
      update
      >
      On Feb 25, 5:45 pm, nick chan <zzzxtr...@gmai l.comwrote:
      >
      Hi i run into some difficulties getting rowupdating to fire when
      clicking Update link/button on gridview
      >
      I set datasource at runtime, basically a datatable
      >
      Edit and Cancel works. I don't know why RowUpdating just doesn't fire.

      Comment

      • Deepak Inani

        #4
        Gridview RowUpdating Not Firing

        Hi nick,
        I Stuck with same problem can you please tel me the way you Execute __doPostBack('G ridView1','Upda te
        $5') manually

        Comment

        Working...