Environment versions
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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only