473,513 Members | 2,454 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.
Feb 25 '08 #1
3 4849
I just checked that even the RowCommand does not fire when clicking
update

On Feb 25, 5:45*pm, nick chan <zzzxtr...@gmail.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.
Feb 25 '08 #2
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="javascript:WebForm_DoPostBackWithOptions( new
WebForm_PostBackOptions(&quot;GridView1$ctl07$ctl0 1&quot;,
&quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" /
>&nbsp;<input type="button" value="Cancel"
onclick="javascript:__doPostBack('GridView1','Canc el$5')"

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

On Feb 25, 6:51*pm, nick chan <zzzxtr...@gmail.comwrote:
I just checked that even the RowCommand does not fire when clicking
update

On Feb 25, 5:45*pm, nick chan <zzzxtr...@gmail.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.
Feb 26 '08 #3
Hi nick,
I Stuck with same problem can you please tel me the way you Execute __doPostBack('GridView1','Update
$5') manually
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2378
by: fatmosh | last post by:
I have a GridView that is pulling data from a SQL database using a Select command. I would like to use GridView's built-in "Edit, Update, Cancel" functionality because it is very handy. However,...
1
2711
by: Alex A. | last post by:
I've got an unbound gridview that I'm late binding. The RowUpdating isn't firing when the gridview's update button is clicked. What am I missing? Thanks
13
41956
by: AG | last post by:
I have a gridview that I bind to a List(of Type) at runtime. Not using a datasource control. The gridview has a template column with an imagebutton whose commandname is set to 'Delete'. The...
3
9783
by: slemen | last post by:
The controls (textboxes) in the gridview row being updated have the old, pre user updated values in the RowUpdating event. Does anyone have an idea why? Thank you, Scott
1
4684
by: =?Utf-8?B?Q2hyaXM=?= | last post by:
Hi, I have a gridview which I added a <asp:CommandField EditText="E" CancelText="C" UpdateText="U" ButtonType="Link" ShowEditButton="True" /> my gridview looks like this <asp:GridView...
9
26851
by: John007 | last post by:
I am using a SQLDataSource to populate my gridview in ASP.Net 2.0. When I hit Edit, the textboxes appear and I am able to edit my values. When I hit Update, the changes are not saved, and there is no...
1
9535
by: Steve Kershaw | last post by:
Hi, I'm using the RowUpdating() event of an updatable GridView. I need to see the values of the columns in the updated row. There has got to be a way to do this! Any suggestions? Thanks...
11
6044
by: SAL | last post by:
Hello, I have a Gridview control (.net 2.0) that I'm having trouble getting the Update button to fire any kind of event or preforming the update. The datatable is based on a join so I don't know...
0
4246
by: steve | last post by:
I have been fighting with trying to update a GridView for a while. I don't want to use the "built-in" way to do it because I am using business layer methods for updating and deleteing and I don't...
0
7158
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7535
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7523
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5683
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5085
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3232
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3221
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.