Versions des environnements
Network:
Windows 2003 Server
>Hi everybody,
>
>We're assigning DataSet to GridView's DataSource. We also save this DS in a session (bad, bad design).
>
>From this Grid we can press an Edit button. This brings a FormView (different depending on PersonType with its own SQLDataSource) where we can change the information including fields in the GridView such as First/Last Name, etc. So, if the basic information was changed, I'd like to somehow "refresh" my GridView.
>
>It was so easy with VFP Grids, but with ASP.NET GridView I'm a bit lost of how should I "refresh" my GridView. Also, preferrably I need to refresh it only in case I changed few fields displayed in a GridView (if the code is going to be resource extensive).
>
>Any ideas, what should I do in my case?
Hi,
Isn't refreshing the GridView simply a matter of calling its .DataBind() method? Can you use the FormView events ( .ItemUpdated etc.) to only trigger the .DataBind() when neccessary?
Regards,
Viv
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement