/// <summary> /// Handle the grid requesting tooltip content /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OnShowToolTipHandler(object sender, ReportGridtToolTipEventArgs e) { if (e.ReportCell.ReportColumn.ColumnId == "HeatIndexColumn") { if (this.matchToolTipContent == null) { this.matchToolTipContent = new FluidTrade.Guardian.Windows.Controls.MatchPartsUserControl(); } IContent iContent = e.ReportCell.ReportRow.IContent; CreditCardRow creditCardRow = iContent.Key as CreditCardRow; if (creditCardRow == null) { return; } foreach (ConsumerTrustNegotiationRow consumerTrustNegotiationRow in creditCardRow.GetConsumerTrustNegotiationRows()) { if (creditCardRow.CreditCardId == consumerTrustNegotiationRow.CreditCardId) { MatchRow matchRow = consumerTrustNegotiationRow.MatchRow; if (matchRow != null && matchRow.IsHeatIndexDetailsNull() == false) { this.matchToolTipContent.SetDetails(matchRow.HeatIndexDetails); e.ToolTip.Content = this.matchToolTipContent; } break; } } } }
//private FluidTrade.Guardian.Windows.Controls.MatchPartsUserControl matchToolTipContent; /// <summary> /// Handle the grid requesting tooltip content /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OnShowToolTipHandler(object sender, ReportGridtToolTipEventArgs e) { }