By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,905 Members | 2,075 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,905 IT Pros & Developers. It's quick & easy.

datagridview : clear datagridview

P: 4
Hello All,

In a VB2005 Application, I want at a certain point clear the contents of a datagridview, but maintain the columnheaders on the datagrid itself so that it is obvious that the datagridview contains no records.

I've tried several methods :

datgridview1.datasource = nothing is not working.
datagridview1.clear() or clearselection() is not helping me

Is there a quick way to solve this problem ?

Thanks everybody !
Apr 12 '08 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.