Gridview rowupdating dropdownlist selectedvalue
It displays 2 columns Contact Name and City of which city is editable via ASP.
For that I am using Item Template which contains labels to show the values.
You have the dropdownlist in a template field, and you are Binding to the variable "cat".
The update function on a gridview will automatically update the values since the Bind() function is two-way binding.
When I click the edit button, the Country display changes to a dropdown list but the selected Country is not 'Canada' but the first value in the datasource.
NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. ================================================== ========= Read this if you want to know how to get a correct reply for your question: ========= Technical Editor for: Beginning Visual C# 2008 Professional Search Engine Optimization with ASP. NET Integrated Programming Wrox Blox: Introduction to Google Gears Wrox Blox: Create Amazing Custom User Interfaces with WPF and .I will attach the code in case there is something I have missed My mistake, the Row Updaing is firing.It is just for some reason, my breakpoint isn't working. The problem is that the new selected index in the Drop Dow List seems to be the original one. I used the Grid View designer, Allow Edit, Allow Delete, here is the code: Ok lets take a step back. I dont know how to wrie an event_handler ,specifically, for... Andwhen one of these command buttons is cliked it must go to proper page.