I am using Template Field’s Item Template and Edit Item Template for providing read only and editing interface of the same column in the Grid View.
By Default, Grid View control displays Item Template which directly shows the Product Name and Unit Price columns but when user clicks Edit button Grid View automatically switches to Edit Item Template and display the control available inside Edit Item Template for user editing.
From what was said in the other comment, should I be calling the Build Grid from somewhere other than Page_Load()?
What happen if you leave the Bind Grid(); at the end but call Build Grid(); before finding the ddl?
Now I will show you the C# code behind file of the above ASP.
NET page that will handle different Grid View events to provide complete editing functionality.
First, we have to very be clear in our mind that there are mainly two way of taking the cell value from the gridview: Another Way of Taking -- Just for Sharing This code is for taking the value apart from the gridview events; that is, any common event using sender object .
Next event is the Grid View Row Editing event to give ASP. You need to set the Edit Index property of the Grid View with the New Edit Index property of the Grid View Edit Event Args class.
I worry it will still dont have your new value, but let`s try.