What does the Gridview.DataBind method do, and when should it be used? I am running an update procedure on my GridView, which works fine. However, after the update completes, the changes are not not shown until after I log out and back into my website.
Is DataBind the correct method to see the changes immediately?
If I were to apply a DataSource to a GridView in code, then I’d have to bind it to the GridView Control before it could use it:
If I am correct at interpreting your rather limited description, then I would say you have a GridView in which you pull data into your application in memory…then you run some kind of update on the data, but never update the in-memory object…
Be more specific with how you’re populating your GridView’s DataSource if you want a more specific reply.