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

Re: How to refresh DataGrid to display latest dataset data?? by Kathleen

Kathleen
Tue Jul 29 18:40:51 CDT 2003

Ivan,

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

--
Kathleen (MVP-VB)



"Ivan" <ice_348@hotmail.com> wrote in message
news:#APs2RYVDHA.2268@TK2MSFTNGP11.phx.gbl...
> 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
>
>