24-Oct-2015 11:13

Aspxgridview rowupdating newvalues empty

A common way to use these collections is to HTML-encode the values supplied by the user before they are stored in the data source. protected void Page_Load(object sender, Event Args e) { Control test = Get Post Back Control(Page); if (Page.

= "")) { Data Table result = new Data Table(); string from = null; string to = null; switch (Drop Down List From. Data Source = result; Session["Result"] = result; Grid View Result. Value; break; } result = Load Grid View(from, to); Grid View Result. Without seeing your markup, it's hard for me to tell if you've created if ((test. I'll try to address your question, but I'm also going through some of the other problems here. event is raised when a row's Update button is clicked, but before the Grid View control updates the row.

This enables you to provide an event-handling method that performs a custom routine, such as canceling the update operation, whenever this event occurs.

A Grid View Update Event Args object is passed to the event-handling method, which enables you to determine the index of the current row and to indicate that the update operation should be canceled.

To cancel the update operation, set the collections, if necessary, before the values are passed to the data source.

You didn't ask this in your question, but you've written some smelly code here.

Last Change: More Information (@jwiscarson) I’m sorry, I was in hurry. In that project, the users could select 2 categories, enter a search string and the result will show in a Grid View. Here is my problem, if the "admin user" click on edit, change the value of the cell and execute the update, the value would not changed in the Hoo boy.

The column depense on the selected value from the dropdown, I dont know the both selected items at the beginning.

Profile for aspxgridview rowupdating newvalues empty:

aspxgridview rowupdating newvalues empty-9aspxgridview rowupdating newvalues empty-75aspxgridview rowupdating newvalues empty-43

Leave a Reply

Your email address will not be published. Required fields are marked *

One thought on “aspxgridview rowupdating newvalues empty”