If you just want to clear the grid without deleting any data, you can set the datasource to nothing and then restore it
grdMyGrid.Datasource = Nothin
grdMyGrid.Refres
grdMyGrid.Datasource = ? (name of your datasource
----- Bill wrote: ----
I need to delete all of the contents in a datagrid before re-loading it. Please help
Thanks.
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.