I want to customise a tooltip depending on which rows are selected. The problem is I have to click away from the grid and then move the mouse over the selected rows for the tooltip to display. Any ideas?
private void _toolTip_Popup(object sender, PopupEventArgs e){ if (e.AssociatedControl != CurveGrid) { e.Cancel = true; return; }
var dates = CurveGrid.Selected.Rows.All.Cast<UltraGridRow>()?.Select(r => r.GetCellValue("Date")).OfType<DateTime>().ToList(); if (dates.Any()) { _toolTip.Popup -=_toolTip_Popup; _toolTip.SetToolTip(CurveGrid, $"CUSTOM TEXT GOES HERE"); _toolTip.Popup +=_toolTip_Popup; } else { e.Cancel = true; }}
Hello,
I see you have posted the same question in another forum. Please wait for a reply in the page below.
https://ko.infragistics.com/community/forums/f/ultimate-ui-for-windows-forms/121255/ultragrid-tooltip-won-t-reshow