How to refresh DataGrid to display latest dataset data??

  • Thread starter Thread starter Ivan
  • Start date Start date
I

Ivan

Hi All,

i 'm having a problem of refreshing DataGrid on Windows form..

i have bind a dataset to datagrid .. which works perfectly in the beginning
but once i update the database with executing sql command
and retrieve dataset data again...
the datagrid will not refresh... it still display old data....

i tried to set datagrid.datasource = nothing
and set dataset bindings again to datagrid... it still showing old data....

does anyone know how to solve this problem and why it happens??.... please
let me know...

Thanks All,

Ivan
 
Ivan,

Are you using the SetDataBinding method? If so, show code. If not, try it.
 
Back
Top