Rowupdating not working

We first of all create a Stored Procedure that gets the Id of an employee as a parameter from the Grid View on whichever row the user clicked. In this event, first we get the datakey value that is the id of an employee of whichever row the user clicked and that id is passed as a parameter to the Stored Procedure. According to the above, in these three operations we use three events of the Grid View for each operation.Introduction The Grid View control displays the values of a data source in a table.

rowupdating not working-53rowupdating not working-42

Free counters Added on January 19,2012 Follow Me @vmsdurano A bit About Me Disclaimer The opinions expressed herein are my own personal opinions and does not represent the opinions of my employers.Now we define a method for opening a connection with the relation database and returns a SQL connection object depending on the connection string that is passed as a parameter of the Sql Connection class constructor.Delete a Record We can delete a record from the database table by clicking on the delete button that is in the Delete column of the Grid View.Here we can update Name, Emp_Code and Emp_Age fields depending on the Id field of the "EMPLOYEE" table.Create SQL Connection We need a connection with a Microsoft SQL Server database so we can access data and perform an operation on it.Asp Alliance Register Edit My Profile Author List Write for Us About Asp Alliance Contact Us Privacy Policy Link To Us Advertise Subscribe Free Newsletter Newsletter Archive RSS Syndication . NET 2.0 Examples ASP Tutorials Learn ASPLearn VBScript Learn JScript Learn SQLLearn XMLSoftware Resources Shopping Cart Ecommerce Charts and Dashboards Other Resources Learn Java Learn Oracle Opinion / Editorial Crystal Reports Alliance WPF Resources AJAX Resources Silverlight Resources Free Tools Cache Manager Simple CMSReviews Book Reviews Product Reviews Expert Advice Books ASP. NETLearn AJAXLearn Silverlight Learn Visual Studio Learn ADO. NETLearn Web Services Learn Controls Learn Biz Talk Learn Share Point Learn Mobile Learn SQLLearn SQL Reporting Learn Windows Forms Learn XMLLearn Crystal Reports Learn Far Point Learn Dev Express Examples ASP.aspdotnet-suresh offers C#articles and tutorials,csharp dot net,articles and tutorials, VB.In this article we will look at how to update or delete a record in a database table using a Grid View control.On Row Updating is fired when the 'Edit' button is clicked. Is the data bound to the gridview, your gridview markup doesn't say that it is bound to Category Name. In the Row Updating event handler, it fetches the Category Name data to which the textbox is bound to. Try something the gridview is bound to in your case Product [email protected] Vijay : I agree that its bad idea to enable any Id to be editable, but before going to my module i just create one table containing Prod ID and prod Name.

You must have an account to comment. Please register or login here!