B: and a strange thing that I noticed, when I click edit it reloads the page but won't edit the row, so I click it again and it works ..and this happen everytime, it's not an exception or something! I figured out that when I add a Data Key it created a new field for it which is the ID and that what caused the problem! but now I'm facing a problem that the cell Text property returns the original value not the new value!
If you reset the Data Source at this stage, your values for updating will be lost. I actually don't know how to write the Row Updating function, I just found it from the internet, and so of course it's not working. Please give some references and/or details of how to. Ok what's happening is that you are binding the data source for the Grid View every time a postback occurs in the Page_Load method.Grid View don't provide built-in inserting, so normally we add some textbox controls to accept value for a new record and update the database. NET 2.0 gestire l'editing e il sorting della Grid View. NET Core Active Directory ADFS AJAX Amministrazione Angular Angular JS Apple Apple MAC ASP ASP. BAT) Bootstrap Browser C# Calcolatori CAML Claims Client Object Model Clipper Codeplex CRM CSS Database DOS Download Elettronica Elettrotecnica Emulatori Errori Esami Esempi Excel Fai da te Finanze Flash Giochi Git Hub Hardware HTML HTML 5 IIS Info Path Installazione Java Java Script JQuery JSON Knockout js Linux Manuale MVC MVVM Network News Node Js Object Model Office Office 365 Oracle PL/SQL Postgre SQL Power Apps Power Shell Project Server Raspberry PI React Regular Expression Reporting Reporting Services Script Search Server Share Point Share Point 2003 Share Point 2007 Share Point 2010 Share Point 2013 Share Point 2016 Share Point Designer Share Point Foundation Share Point Online Silverlight SPFx SQL SQL Server SQL Server 2012 T-SQL TV Type Script Utility VB. Collections; namespace Customer The problem is that when I click the Update button to change the number of items for a specific product, in the Row Updating event handler I get the number of rows as 0!!!!I'll still lost since I don't manage to see the the gridview content is lost. Add a unique "Id" property to the Shopping Cart Item and use it as the Data Key.