Hi,
How can I kept highlighted element from my ListView control?
It sems when user changes focus to other control, highlighted element disappears and users don't know wich elements has selected.
Selected items it works well
Hello Tur,
Thank you for posting in our forum.
To retain the SelectedAppearance of the UltraListView items when the control lose focus you need to set HideSelection property of UltraListView.ItemSettings to false. You can use code like this:
this.ListView.ItemSettings.HideSelection = false;
More about HideSelection property you may find by following the next link http://help.infragistics.com/Help/Doc/WinForms/2015.2/CLR4.0/html/Infragistics4.Win.UltraWinListView.v15.2~Infragistics.Win.UltraWinListView.UltraListViewItemSettings~HideSelection.html.
Please let me know if you need any additional information.
Thank you for using Infragistics Controls.
ok, thanks, this solve my problem!
Only for curiosity, Why this property value is set by default as true? it seems a bit confusing
Thank you for your feedback.
I am glad to hear that you have resolved your issue. Regarding your question - UltraListView was designed to give to developers similar control like Microsoft's ListView, with enhanced functionality. This is why you may find many similarities between UltraListView and MS ListView. One of this is HideSelection property. The same property is set to true by default in MS ListView. This is why it is set to true by default in UltraListView too.