Rowupdating event grid view

07-Jun-2015 10:16 by 3 Comments

Rowupdating event grid view - nh speed dating events

The simplest solutions for this error is : Just change the “Command Name” property of the “Edit” button from “Edit” to “Edit Row”(or something else which is relevent to you but make sure it is not “Edit”). After scratching my head for sometime I found that the words like “Edit” are reserved to invoke some built in functionality of the Grid View.

rowupdating event grid view-22rowupdating event grid view-40

So when we change the Command Name property of the buttons to some other text then it will work fine.Some other Grid Views reserved key words and their default associated events are as follow : “Cancel” – Raises the Row Canceling Edit event.“Delete” – Raises the Row Deleting and Row Deleted events. “Page” – Raises the Page Index Changing and Page Index Changed events.“Select” – Raises the Selected Index Changing and Selected Index Changed events. “Update” – Raises the Row Updating and Row Updated events.I came across a very interesting error while using buttons/link buttons in the Grid View for editing the Grid View rows data.The exact situation I faced is like this – I have a Grid View with a column which contains an edit button.

The button is associated with the Command Name property as “Edit”.

The Grid View is associated with the On Row Command event.

Then in the code behind I have handled the On Row Command event.

In the event handler function I have checked for the Command Name property and write necessary code for each of the actions.

The HTML code for the Grid View is as follow : The event handling code for the Row Command event is as follow: protected void gd Test_Row Command(object source, Grid View Command Event Args e) { if (e. Trim() == "Edit") { //Code for the editing } } Till now everything looks fine but the problem arises when you run this application.

When you click on edit button of the Grid View a Javascript error occurs : “Microsoft JScript runtime error: Sys. Page Request Manager Server Error Exception: The Grid View ‘gd Test’ fired event Row Editing which wasn’t handled.” At first look you may think that you have not handled some events fired by the Grid View. The mystery behind this error is the property “Command Name”.

  1. No payment free online chat sexy nude 02-May-2015 22:55

    There are, of course the traditional drinks-and-a-movie kind, but far more of us are opting for the no-strings sex variety - or ' Netflix and Chill' hook-up.

  2. Free kerala live sex cam 12-Sep-2015 15:28

    jew dating free gay chat site: interracial website!

  3. easy does it dating guide 21-Mar-2015 15:23

    You can get in contact for FREE with the chat and messaging facilities we have!