Update All records in Gridview
-
I have a number of records displayed in a Gridview. Each record contains a blank field called Code. I want to have a field on my form, field A, which I can add a number to and there will be a button called updateCode. When I click the button updateCode I want the number in field A to be updated to the field called Code in each record displayed in the GridView. Anyone know if this can be achieved?
-
I have a number of records displayed in a Gridview. Each record contains a blank field called Code. I want to have a field on my form, field A, which I can add a number to and there will be a button called updateCode. When I click the button updateCode I want the number in field A to be updated to the field called Code in each record displayed in the GridView. Anyone know if this can be achieved?
macca24 wrote:
Anyone know if this can be achieved?
Quite simple really. In your button click code, pass the textbox value to a stored procedure. In that stored procedure, update all the records. Then refresh the grid.
There are only 10 types of people in the world, those who understand binary and those who don't.