Rowupdating command gridview
before that i want just using Find control and casting and then retrieving all lot code. If values are same they could notify user to change the value(give new cell value).
Every one can use it to compare the new value with old ones.
Then in the row editing event set the control to active.
This would keep the user from clicking the button twice.
After it has been clicked the postback places that row in edit mode. At this point in time the above Edit Item Template is displayed with two Image Buttons within it.
One has it's Command Name = "Update" and the other "Cancel".
Bad thing is that the sql table updates each time button is clicked. Here is code I am using Markup of command field inside Grid View1: Disable the update link button at the end of the row updating event.
This example shows how to edit and update records in a Grid View in ASP. This example is helpful in situations where an administrator needs to edit several records from the database.
For demonstration I have created a database (named Database.mdf) in which we have a table named tbl_Employee.
I am trying to use an Update Command within my Grid View.
I need to find the "Find Control" for the Edit Command textboxes. When the user clicks the Edit button, the row is populated with dropdown boxes, textboxes, etc for editting.