In my ListViewType.DetailsView, RadListView control, I have a simple item format method as follows.
private static void RlvScanMeterNumber_VisualItemFormatting(object sender, ListViewVisualItemEventArgs e) { if (e.VisualItem.Selected) { e.VisualItem.BackColor = Color.Red; } else { e.VisualItem.ResetValue(VisualElement.BackColorProperty, ValueResetFlags.None); } }
Before when I had the reset flag of that ResetValue function set to ValueResetFlags.Local, it DID NOT WORK.
However, after some experimentation, I found that if I used ValueResetFlags.None, it does work!
I am manually adding the list items to the list view, as per the unbound data scenario. So would that have something to do with it?
Why is that?
What do these ValueResetFlags mean?