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.comwww.prenia.comWeblog: blogs.prenia.com/cathi