Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataSet as DataSource for the GridView
Message
De
16/09/2008 03:27:33
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01347730
Message ID:
01347829
Vues:
9
>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
Fil
Voir

Click here to load this message in the networking platform