dating cupid dating - Gridview update not updating

Finally, on the same page, but NOT within the Grid View, is the form for editing the currently selected item.

It includes the textbox as follows: Now, within the Text Changed event handler for the Textbox, the following line of code modifies the property of the selected item in the Grid View (I am aware that there are performance hit implications for using Text Changed instead of Lost Focus, but I will address that after I get the basic concept working): So, when running, I select different items in the Grid View.

gridview update not updating-3gridview update not updating-34

The Update Panel contains a textbox for search, a button to submit the search and a Grid View control that is supposed to return the results.

Let me explain: I have a modal popup extender that contains an Update Panel.

I have found through my research that Observable Collection is sufficient for adding and removing items from the source (and indeed doing so does update on the Grid View), but that this is not sufficient for altering the properties of a list item in the source. Data Bind() after editing the data in the datasource, and that would refresh the Grid View. I am guessing something is missing, or I don't have the right combination of components.

I saw that implementing INotify Property Changed is necessary on the source object (Conference object, in this case). I have also read about needing the textbox to be two-way binding to the data source. So in summary: How can I get the Grid View's displayed item (which includes displaying the Name property of the item) to update when a textbox (located outside of the Grid View, and is for editing the Name property of the selected item in the Grid View) value changes?

The goal is to have a Grid View displaying a list of item tiles, databound to an Observable Collection.

Beneath the Grid View on the same page, is a form for editing the items in the Grid View.

I have a Conference datatype, that includes a Name property (of type string). The gridview looks something like this (some properties eliminated here for brevity): Note that the XML namespace "data:" is properly defined to reference the namespace the "Conference" datatype is defined in.

There are no compile errors, only unexpected (or in this case altogether missing) behavior when the program runs.

I am having problems with my gridview update, it doesn't update the record in the database, it doesn't generate an error either, it just reloads the page with the previous values.

Tags: , ,