This will lead to problems like "Grid View does not show updated values", "Grid View looses values changed by user". In your Page_load, this is typically only inside a block where you check to make sure that Page_Load is not being called during a post-back call. I fetch the values from table and Ii display values into gridview." Delete Command="Delete Item From Cart" Delete Command Type="Stored Procedure" Select Command="get Cartby User Name" Select Command Type="Stored Procedure" Update Command Type="Stored Procedure" Update Command="Upd Quantity" i have delete method which is working without problem.i have tested my stored procedure and it is working without problem exactly how i need. i made the Read Only="true" the things which i don't need to update i deleted the code-behind. In my case this was happening because I was binding to a List of custom objects.Note A common mistake that a lot of people do is that they perform a databind each and every-time the Page_Load method is called.I would like to use the built in update row command but the problem I'm running into is making it so my application isn't functioning correctly.Problem: In one of my edititem template fields I have both a Label control and a dropdown control.
A datakey represents the primary key field or field of a record that can uniquely identify it in a data-bound control. Row Index represents the index of the particular row.
Now I try to update values using Row Updating but after click edit button grid value are not showing in text boxes how can do this.
"If you like my work; you can appreciate by leaving your comments, hitting Facebook like button, following on Google , Twitter, Linked in and Pinterest, stumbling my posts on stumble upon and subscribing for receiving free updates directly to your inbox .
Many a times in our applications we use primary keys to get control of the particular record in the gridview.
For this situation, many developers use invisible columns (Hidden columns) in the gridview to identify that row.