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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Datagrid clear

Status
Not open for further replies.

peekay

Programmer
Oct 11, 1999
324
ZA
I wish to clear the datagrid before binding it again as presently it only adds the new datarows to the existing ones. I have seen questions here about it but none answered correctly as databindings.clear does not work and the .clear method is not available.
Thanks

PK Odendaal
 
Instead of clearing the datagrid, have you tried clearing the data source bound to the dg?

________________________________________
Andrew
 
icrf

Thanks. I got it right after I posed the question. I realised that the datagrid cannot be cleared but only the dataset with mydataset.clear.

PK Odendaal
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top