How to refresh DataGrid to display latest dataset data??

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
 
K

Kathleen Dollard

Ivan,

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top