Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Clear as DatGridView in vb 2005

Status
Not open for further replies.

jake007

Programmer
Jun 19, 2003
166
0
0
US
Seems like it should be simple enough, but having some issues. I Create a query to fill the datagridview, works just fine, but then when I change the query and resubmit the query to the view, the information from the first query is left there and the new query is appended to it? I have tried setting the datasource and the datamemebr to nothing but no effect.

any help would be geatly appreciated.

Jake.
 
Try this:

Me.DataGridView1.DataBindings.Clear()
Me.DataGridView1.DataSource = Nothing

If at first you don't succeed, call in an airstrike. - Murphy's Laws of Combat Operations
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top