Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataSet as DataSource for the GridView
Message
De
16/09/2008 10:54:12
 
 
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:
01347926
Vues:
8
>>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
>
>I don't think it's that simple. DataSet for the GridView has no idea that changes were made in the database. See this discussion
>http://forums.asp.net/p/1320369/2624488.aspx#2624488

I see that the poster there, like you, says that the Dataset used as the datasource for the gridview is stored as a session variable. If that is the case can't you just use the same session reference as the datasource for the FormView ?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform