Gridview rowupdating causesvalidation

Posted by / 13-Nov-2019 16:00

Gridview rowupdating causesvalidation

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.

I am using a Template Field to display my Edit, Update and Cancel 'buttons' in the first column of the Grid View within respective Item Template and Edit Item Template fields.

On my page I have a few user controls that call the Data Bind() method in the load event and also the page the gridview is on also calls the Data Bind in the load. If yes, you can try to do updating by using grid Cart. Row Index], then rebind Grid View and check the count of rows again.

The Enable View State property is set to true both for gridview and page.

It is my understanding that Data Key has to be unique?

If you use Description or anyother field as Data Key then what if the two items have the same description (say Description="") - the Grid View won't be able to identify which row belongs to which item.

gridview rowupdating causesvalidation-27gridview rowupdating causesvalidation-11gridview rowupdating causesvalidation-48

One thought on “gridview rowupdating causesvalidation”

  1. The line 1 of the Trans Jakarta - a fleet of buses with their own dedicated lanes - is useful as it goes from the North (Kota) to the South (Blok), passing through all the major attractions of the city.