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

Listview _Control

P: n/a
Hi,

I have a problem regarding clear method of the listview control.
In my application sometimes the "listview1.Items.clear()" method
is giving me a "null reference exception".

All I could thought of it is related to the no. of items in the
listview but it is not the case.
Even if my listview contains items which could be removed by using
above method the error persists.

This is not a frequent scenario.

Any help is invitable

Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi,

Please post the code & also describe those scenarios when you
experience such a thing.

Kalpesh

Nov 21 '05 #2

P: n/a
try trap ..try/end try

so*************@yahoo.com wrote:
Hi,

I have a problem regarding clear method of the listview control.
In my application sometimes the "listview1.Items.clear()" method
is giving me a "null reference exception".

All I could thought of it is related to the no. of items in the
listview but it is not the case.
Even if my listview contains items which could be removed by using
above method the error persists.

This is not a frequent scenario.

Any help is invitable

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.