Radgrid not updating on rebind

I've got a Gridview that is linked to a Details View for Inserts, Updates, and Deletes. Inserts, Edits, and Updates all work..I check the database...

or if I close the ASP Development Server IE instance and reopen it (Shift-F5).

radgrid not updating on rebind-5radgrid not updating on rebind-48radgrid not updating on rebind-32

And with an Insert, when you're done, it just shows you the Gridview / removes the Detailsview.

And even then, the new row does NOT appear until I select some row off the table (do another Postback).

and the behavior is the same: The Gridview doesn't really update until you click on another row in the Grid. I had thought perhaps the fact that an Edit / Update required two clicks had something to do with the fact that maybe the Edit wasn't "finished" somehow.

I mean, when you're done with an edit, it just shows you the Detailsview again with all the fields being uneditable. But I just tried an Insert just now as being the first thing I did after loading up the app.

I had it rigged so that when you selected off the dropdown that is the first real field, another drop-down further on down is populated and certain fields become visible or invisible, based on that selection. And if I fill out the record completely anyways and click "Insert", nothing happens.

So, seems like this is having a lot of fallout elsewhere in my code. After an example edit, this resulted in the OLD DATA once again reappearing in the grid.

I'm happy to report I figured out the problem / resolution.

I decided to take a step back this morning and look at why, even though database inserts, updates, and deletes were working, I knew from testing that my Details View1_Item Inserted, Item Updated, and Item Deleted routines were NOT firing. From the main book of ASP that I've been learning from and from various tutorials and examples online, I didn't THINK I had to go POINT TO these routines in my definition for my Details View.

This topic lists which internal grid commands make an implicit call to the Rebind() method of Rad Grid in order to refresh the control's content and fetch the latest information from the grid source.

Tags: , ,