I have a ValueList on a grid column. I want to catch an event as items in the ValueList are "HotTracked" over so that I can highlight another element in my UI.
Is there an event that I can use to be notified when the user has hovered over an item in a ValueList on a grid cell?
Thanks in advance!
Hello,
What you could do in your scenario is to handle MouseEnterElement event of the UltraGrid and to add following lines of code:
if (e.Element is ValueListItemUIElement)
{
//Implement your own logic for hovering of valuelistitem
}
And set accordingly to that what should happen in the MouseLeaveElement event.
Let me know if you have any further questions.
This worked perfectly. Thanks!
I did this:
if (myGrid.DisplayLayout.ValueLists.Exists("SelectedFeatures"))
ValueListItemUIElement element = (ValueListItemUIElement)e.Element;
ValueListItem item = (ValueListItem)
selectedFeatures.ValueListItems.GetItem(element.ListIndex);
IMyFeature feature = (IMyFeature) item.DataValue;