473,785 Members | 2,863 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 4867
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.
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="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.
Feb 26 '08 #3
Hi nick,
I Stuck with same problem can you please tel me the way you Execute __doPostBack('G ridView1','Upda te
$5') manually
Jun 27 '08 #4

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

Similar topics

0
2389
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, when the user clicks the Update button I DON'T want to run an SQL UPDATE command on the database, I just want to handle it myself. So far to get around this I just create a dummy SQL query that never updates any rows and let it complete, then...
1
2729
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
42070
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 footer template has an commandbutton with the commandname set to 'Insert'. Both buttons cause postback, however the RowCommand event does not fire. How can I get the rowcommand to fire?
3
9807
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
4701
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 ID="GridView1" runat="server" OnRowEditing="RowEdit" OnRowCancelingEdit="RowCancel" OnRowUpdating="RowUpdating"...
9
26925
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 error message. I put a breakpoint on the RowUpdating event handler and found that the event is not fired. Right now, I have not written code for the Update event. I am just wondering why the event is not firing. Here Person_ID is the primary key....
1
9566
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 in advance!
11
6069
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 if that's what's causing the behavior or not. It seems like the Update button should at least do something. When the Edit button is clicked, the grid goes into Edit mode and the Cancel button takes the grid out of Edit mode. So, I don't get what...
0
4282
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 want to have my parameter names in those methods have to be "original_Parametername" or even if I change the OldValuesParameterFormatString to get rid of the "original" I would still have just "Parametername". I think most people user parameters...
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10329
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10092
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7500
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6740
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3650
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2880
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.