Gridview rowupdating does not fire

to be aware that Sitecore meddles with some controls.This nasty issue which can have you banging your head against the wall for hours (days?) has been previously blogged by Mark Cassidy but I guess it depends on what symptom you’re having first, and wether you relate it back to this obscure setting. Grid View to This issue does now have a fleeting mention on While looking for that link, I also came across another blog post detailing the same issue and frustrations I’ve had with Gridview events that may have more detail.

gridview rowupdating does not fire-41

The problem is, I’d very much like to do so, if ASP. But I can’t set a Data Source property or anything on the Sql Data Source!!! I probably have to read the cells on the Grid View of the selected row, find the controls, get the values from those and insert those into my Data Set.

Which means I won’t make my 70% code reduction Microsoft has always promised me.

Place Link Button Edit in Item Template and Link Button Update and Cancel in Edit Tamplate of Gridview's column. Fire Grid View's Row Editing event for Link Button Edit. Fire Grid View's Row Updating event for Link Button Update. Fire Grid View's Row Canceling Edit event for Link Button Cancel. Set Command Name propery of Link Buttons according to their respective event. Set Grid View's Data Key Names Property to record ID (ID=Primary/Unique key of student table) 7.

For a while now I’m trying to figure out why my method, triggered by the Grid View.

Row Updating event, doesn’t work as all samples say it should do.

All samples of course assume you’re doing everything in your page, but I have to do everything in my code-behind, because on forehand I don’t know what I’ll be binding to my Grid View.

Check out what I’m trying to do, maybe you can help?

First, I load up some data: After that, I’m doing some work to make my Grid View look beautifull, adding all columns by hand.

But for this demo, I’ll show you the simple version, that also doesn’t work 🙂Let’s bind the data to our Grid View and have it autogenerate our columns, as well as an edit button.

When we edit a row in our Grid View and press the “Update” button, at some time it’s received in the Row Updating method.

But as I noted in the comments in that method, some collections that should contain the columns (names, old values and new values) are always empty. And the Row Updated method is never even touched!!! NET Forums that I need to use a Data Source control.

866 Comments

  1. Encounter the world's most stunning girls photographed in its intimate and original styles.

  2. Examples include: --"I like laughing / spending time with my friends / having fun." --"I enjoy movies and dining out." --"I'm equally comfortable in jeans & a T-shirt or dressed to the nines for a night out on the town." (perhaps this type of thing is its own category because it's a worthless cliche, but it's also probably not quite true.) The Gold-Digger A person, usually a woman, who makes statements in her profile which strongly imply that she wants a man who will provide her with expensive things and/or cash.

  3. Eastern Orthodoxy 13 November (Accession to the archbishopric of Constantinople) 27 January (Translation of Relics) 30 January (Three Holy Hierarchs) Western Christianity 13 September (Repose—transferred from 14 September)Vested as a Bishop, holding a Gospel Book or scroll, right hand raised in blessing.

  4. Mylol is not only a web site, we have an exciting mobile app available on iphone and android. You can chat with members or privately with someone. We are constantly working on Mylol to make it better for you.

  5. Nicollette filed the papers last week in Los Angeles citing irreconcilable differences, saying they officially split on June 19. The former couple reportedly first started dating in December 2014.

  6. W 1975 roku trafiła się naszemu bohaterowi rola Eddie'ego w legendarnym "Rocky Horror Picture Show".

  7. uk is the 4034:th largest website within the world.

Comments are closed.