I think you need to programmatically set the ListViewItem.Selected value to
false,
when "oranges" is selected. To do this, you need to create a event handler
to handle the SelectedIndexChanged Event of ListView Object, and put the code
in it.
P.S. the event might fire twice for some situation (you need to have
implement some logic to avoid doing the same thing twice, since it will slow
down the performance of the app)
Cheers,
Ivan Wong
"JC" wrote:
I am a newbe to C#, and I am required to enable and disable rows in a
listview, depending on certain criteria.
e.g. The listview contains -
Apples
Oranges
Grapes
I am required to have Apples and Grapes enabled and available for
selection, and Oranges must be disabled so that a user cannot select
that option.
Any ideas as to how this can be done?
Thanks