WPF ListView Cannot Trigger Selection Changed when only one row

Posted by Traci on Stack Overflow See other posts from Stack Overflow or by Traci
Published on 2010-04-12T08:42:57Z Indexed on 2010/04/12 22:12 UTC
Read the original article Hit count: 622

Filed under:
|
|

I have a listview which has its datasource changed after update of a search textbox.

When I enter search criteria that only returns one row, I am unable to trigger the OnSelectionChanged event The listbox works as expected at any other time.

I have tried changing SelectedItem and SelectedIndex in Code, Clicking aimlessly on the ListView both on and off the row and are at the brink of insanity.

Does anyone know of a solution so that I am able to change the selected item!! Help Please

© Stack Overflow or respective owner

Related posts about wpf

Related posts about listview