Hi alan,
Thanks for posting in this group.
As a workaround, I think you can override listview's OnSelectedIndexChanged
method, then you can do your customize selection and de-selection.
For example, you do like this:
protected override void OnSelectedIndexChanged(EventArgs e)
{
//de-select all the original selected items
for(int i=0;i<this.SelectedItems.Count;i++)
{
Console.WriteLine("SelectedItems:{0}",this.Selecte dItems[i].Text);
this.SelectedItems[i].Selected=false;
}
//select the first item.
this.Items[0].Selected=true;
return;
}
It works well on my machine, hope this helps,
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.