473,667 Members | 2,749 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

row editing problem in gridview

4 New Member
hi i am trying to edit the row in grid view but that did not call the row_editing event when i click the edit button in grid view and it gives the error like

"The GridView 'GridView1' fired event RowEditing which wasn't handled."
please any one help me as early as possible to solve the problem that i am facing
Apr 6 '07 #1
6 43468
channaJ
67 New Member
hi i am trying to edit the row in grid view but that did not call the row_editing event when i click the edit button in grid view and it gives the error like

"The GridView 'GridView1' fired event RowEditing which wasn't handled."
please any one help me as early as possible to solve the problem that i am facing
Hi,

I think you have not handled the particular event. Add an event handler to the particular event and try.
Apr 6 '07 #2
nagarjunaReddy
4 New Member
Hi,

I think you have not handled the particular event. Add an event handler to the particular event and try.
hi ,thank you very much for ur reply
i added the event in the code behind file like the following
Expand|Select|Wrap|Line Numbers
  1. void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
  2. {
  3.     GridView1.EditIndex = e.NewEditIndex;
  4.     binddata();
  5. }
Apr 6 '07 #3
nagarjunaReddy
4 New Member
hi ,thank you very much for ur reply
i added the event in the code behind file like the following
Expand|Select|Wrap|Line Numbers
  1. void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
  2. {
  3.   GridView1.EditIndex = e.NewEditIndex;
  4.   binddata();
  5. }
yes i found the solution to this problem,just we have to click on the properties icon set the property RowEditing to GridView1_RowEd iting and then we have to write the above code
Apr 6 '07 #4
threetracs
1 New Member
hi i am trying to edit the row in grid view but that did not call the row_editing event when i click the edit button in grid view and it gives the error like

"The GridView 'GridView1' fired event RowEditing which wasn't handled."
please any one help me as early as possible to solve the problem that i am facing

Hey there,
You need to create the method to handle that action. It should look something like this:

Expand|Select|Wrap|Line Numbers
  1. protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
  2. {
  3.  
  4. }
Oct 3 '07 #5
matinee
1 New Member
Hi,

I have experienced this too. But when i change my CommandName from "Edit" to "EditItem", it works.

I hope this blog will explain more details: <link removed>
Aug 9 '10 #6
sasikala guru
1 New Member
Just change the "CommandNam e" property of the "Edit" button from "Edit" to "EditRow"(o r something else which is relevent to you but make sure it is not "Edit"). Now surprisingly the code works fine.
Dec 11 '12 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1080
by: Fred K. Augustine, Jr | last post by:
After upgrading from Visual Web Developer Beta2 to the final release version, web forms that contained GridView controls set up for data editing stopped working properly. No error is produced but the editing changes are not committed to the database (I am currently using SQL Server 2000). I have also created completely new web forms with the same result. Has anyone else experienced this problem (or anything similar) or does anyone have a...
5
19056
by: misiek | last post by:
Hi all. I would like to know if it is possible to dynamically enable/disable row editing in GridView control in ASP.NET 2.0. I am asking because this feature should be enabled/disable depending on button, which was clicked by user. Thanks in advance, misiek
1
6170
by: K B | last post by:
I just installed VS 2005...both GridView and DetailsView, I'm using a SQLdataSource and both controls do NOT have a checkbox for Enable Editing. Help please!!! Thanks, Kit
1
1867
by: AmitKu | last post by:
I've got the Gridview going at full speed, and I've enabled editing, but when I click on the "edit" button, this ugly editing UI comes up. Well it's not ugly, but it's not great either. How do I change the font/font size of the text thats being edited? Thanks in advance, Amit
0
1453
by: HP | last post by:
Hi there I have a datalist control with some bound controls in its Item Template and a gridview bound to one of those fields (residing also in Item Template). I've found out that when I click Edit on the gridview (same happens when editing other gridview which is outside the datalist) all datalist bound fields (except the gridview) disappear, and they don't appear after submitting GV changes - they do only after changing value of some
3
13398
by: cpnet | last post by:
I have a GridView which I'm populating from an ObjectDataSource (give the GridView a DataTable). The GridView will have about 20 rows, and only one editable column. The editable column consists of a RadioButtonList ("Yes", "No", "Not Answered") in a TemplateColumn. I want the user to be able to select a radio button for each row in the GridView (without having to first put each row into edit mode). Once the user has selected the Radio...
5
4672
by: =?Utf-8?B?QWRhciBXZXNsZXk=?= | last post by:
Hi All, I have a GridView inside the EditItemTemplate of a FormView. Both FormView and GridView are data bound using an ObjectDataSource. When the FormView's ObjectDataSource object has a SelectParameters with a SessionParameter in the parameters collection and the object stored in the Session is a reference type, the DataGrid fails to enter Line Editing mode. Is this a bug? Is there a workaround for this problem?
2
1672
by: vinodkus | last post by:
<asp: editCommandColumnis not available in version 2.0 then how an editing is possible in gridview.
5
5132
by: =?Utf-8?B?Z3V5?= | last post by:
How do you enable editing in a GridView programatically rather than via its Tasks menu? Guy
4
3063
by: ASPnewb1 | last post by:
Hello, I have a 2-dimensional array created from the following text file: data1=asdfawe data2=2 data3=223d data4=22
0
8366
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
8888
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
8565
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,...
0
8650
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7391
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6206
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
5677
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();...
1
2779
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1779
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.