Get boundfield value in rowupdating

6854933580_2c8b688306_z

For a while now I’m trying to figure out why my method, triggered by the Grid View.Row Updating event, doesn’t work as all samples say it should do.

get boundfield value in rowupdating-42get boundfield value in rowupdating-20get boundfield value in rowupdating-55get boundfield value in rowupdating-69

So that means when you bind to some raw collection and hook up to the Data Source property then call databind, if you try to handle the delete or update events these dictionaries are going to be empty.Data Table dt = new Data Table(); Sql Connection con = new Sql Connection(Configuration Manager.Connection Strings ["Northwind Connection String"]. 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.Now I will show you the C# code behind file of the above ASP.When we edit a row in our Grid View and press the “Update” button, at some time it’s received in the Row Updating method.

You must have an account to comment. Please register or login here!