Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Datagrid not automatically updated
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00828740
Message ID:
00828803
Vues:
17
Winan,

I assume that you are binding to a DataSet. DataSets are disconnected from the back end datastore. You would need to call the Clear method for either the DataTable or DataSet, depending if you need to refresh all the tables in the DataSet. If you don't then the new records added are appended to the existing DataTable. Then you would call the Fill method of the DataAdapter which will fill the DataTable with the newest info from the backend. Finally, rebind the DataSet to the DataGrid.


>I have datagrid that contained real time records of a table, my problem is the datagrid doesnot automatically refresh / updated when a new record added .. or a record has been changed .. could any body please help me how to do this?
>
>please help
>
>many thanks in advance
>
>Regards
>Winan
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform