Notifications
Clear all

[Closed] Question about .Net list View

I have a dotnet listview object, in a floating dialog, with several items in the list, clicking the item in the list view will highlight the corresponding item successfully.

However clicking outside the list view, for instance in a viewport, will “de-highlight” the list view item. I know the list view item is still active, but visually it doesn’t seem active in the dialog.

The best example of how I want the list view to work would be to open the batch render dialog (Rendering >Batch render), add a few items and see how the last selected item remains greyed once the user has navigated from the list view.

I can only assume there is some property I need to turn on in the listview? Would this be a property of the List view object or a subproperty of the List view item?

Any suggestions would be most appreciated.

Thanks,

D.

4 Replies

MyListView.HideSelection = false

Thank you Noakesy!

Just an after thought, but can a custom color be set for this “semi-inactive” state of the LV item rather than just the light grey?

There’s no direct property as far as I’m aware but you could probably write your own event handler for the paint event to do it.