Asp net gridview onrowupdating
The On Row Command event fires (with a Command Name of "Update") but the On Row Updating event doesn't fire.
However, if i change the logic so that the column is hidden by setting the corresponding row cell's visible property to false in the On Row Created event, everything works as expected.To cancel the update operation, set the collections, if necessary, before the values are passed to the data source.A common way to use these collections is to HTML-encode the values supplied by the user before they are stored in the data source. Here’s the code to get the Id: There’s now no other way to get the edited row number other than looping through the rows of the Grid View and comparing the datakey value of each row with the key that was passed to the on Row Updated method from the Grid View Updated Event Args parameter. It's a bit different of a set up, as all the controls are in a single column (maybe this is causing the problems? I do not receive any runtime errors, so it must be logic. ASP The order in which your events are firing might be the problem.