RE: how to refresh the data in datagrid automatically
Refreshing The Grid No matter how you performes data binding if your application views dynamic data you are bound to refresh the grid at some time. It turns out that this is another trivial task that was made un-obvious . Here's how:
Get the DataGridCurrencyManager Call it's refresh method Note the parameter to BindingContext - this is where most people fail. It should be a reference to the exact object you binded.
' Get currency manager Dim cs As CurrencyManager _ CType(MyDataGrid.BindingContext(MyCarsDataSet.Cars) _ CurrencyManager) ' Refresh cs.Refresh()