Gridview rowupdating event from code Naked pussy hoockup womn
aspdotnet-suresh offers C#articles and tutorials,csharp dot net,articles and tutorials, VB.In my previous article, I described how to use a Grid View control to display data using a Sql Data Source control.Developers prefer manual coding but an editable Grid View is a good way to update a database. Step 1Put a Grid View in your aspx page then write code for the page load to fill the Grid View.After filling the Grid View click on the Grid View; click EDIT Column convert to field to convert this field into a Template Field. ' I am marking this also as answer,,let other less understanding guys like me benefit.. Yes it is IF NOT Is Post Back, HAHAHAHA I am a more familier with VB ..missed to read that '!
As a beginner it's very tough and challenging to work with controls like a Grid View in ASP. Even I faced difficulties at the starting point of my career. Here, I am not going to explain about Grid View and other events in it, because there are a lot of good articles about that.A Grid View Update Event Args object is passed to the event-handling method, which enables you to determine the index of the current row and to indicate that the update operation should be canceled.To cancel the update operation, set the collections, if necessary, before the values are passed to the data source.But ensure that the control/link is inside the Grid View, only then can we cast sender as Grid View.This code is a bit complex but just add it knowing that we may refer to it in the future.