Retrieving dropdownlist gridview rowupdating event

13-Nov-2019 00:54

How do I get the old values in a gridview row in the row_updating event? I'm using a sqldatasource control to populate the grid and want to write the update code in the Row Updating event. I can get the value of the first field using " Select Command="SELECT @Week Ending Week Ending , Project , Project ID , Category , Category ID ,isnull([1], 0) Sun ,isnull([2], 0) Mon ,isnull([3], 0) Tue ,isnull([4], 0) Wed ,isnull([5], 0) Thu ,isnull([6], 0) Fri ,isnull([7], 0) Sat from (select P. As it happens though the Row Command method is also called during Updating.

event is raised when a row's Select button is clicked, but after the Grid View control handles the select operation.

This enables you to provide an event-handling method that performs a custom routine, such as updating a status label with the currently selected row, whenever this event occurs.

For more information about handling events, see NIB: Consuming Events.

Text; //owner Mail is a string (object) from the list of objects that I put as datasource to the gridview The Selected Index will always default to 0 if you don't define it in your Drop Down List definition.

before that i want just using Find control and casting and then retrieving all lot code. If values are same they could notify user to change the value(give new cell value).

event is raised when a row's Select button is clicked, but after the Grid View control handles the select operation.This enables you to provide an event-handling method that performs a custom routine, such as updating a status label with the currently selected row, whenever this event occurs.For more information about handling events, see NIB: Consuming Events. Text; //owner Mail is a string (object) from the list of objects that I put as datasource to the gridview The Selected Index will always default to 0 if you don't define it in your Drop Down List definition. before that i want just using Find control and casting and then retrieving all lot code. If values are same they could notify user to change the value(give new cell value). NET forums is how to deal with exceptions like The Grid View 'Grid View1' fired event Row Editing which wasn't handled.