Hi,
I am using Infragistics New Advantage Ultra Win Grid Control. I want to show tool tip message on ultra win grid row. Tool tip message should have image and formatted text. Different different rows have different different tool tip message. For completing this task I used UltraToolTipInfo and UltraToolTipManager class but I was not able to done it.
How can I apply tooltip message on selected row only not on UltraWinGrid control.
Thanks.
I had solve this problem.
Following link help me to solve it.
http://blogs.infragistics.com/forums/p/3027/17287.aspx\
This code work for me.
private void igrdAgentPool_MouseEnterElement(object sender, UIElementEventArgs e)
{
if (e.Element is Infragistics.Win.UltraWinGrid.CellUIElement)
// Get a refernce to the column.
Infragistics.Win.UltraWinGrid.UltraGridColumn column = (Infragistics.Win.UltraWinGrid.UltraGridColumn)e.Element.GetContext();
// Show the tooltip only when it is over the "Delete" column.
if (column.Key == "Delete")
Infragistics.Win.UltraWinToolTip.UltraToolTipInfo tipInfo =
new Infragistics.Win.UltraWinToolTip.UltraToolTipInfo("Click button to delete record.", ToolTipImage.Info, "Delete Record", DefaultableBoolean.True);
// Set the tooltip and it will be displayed automatically based on the tooltip manager settings.
ultraToolTipManager.SetUltraToolTip(igrdAgentPool, tipInfo);
//ultraToolTipManager.ShowToolTip(igrdAgentPool);
}
else
ultraToolTipManager.HideToolTip();
private void igrdAgentPool_MouseLeave(object sender, EventArgs e)
ultraToolTipManager.SetUltraToolTip(igrdAgentPool, null);
Thanks for your help.
Hello,
I tried this and it always works fine for me so I attached my sample to this post for you. Please review it and feel free to let me know if I misunderstood you or if you have any other questions.
I am sending you a code.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Infragistics.Win.UltraWinGrid;
using Infragistics.Win.UltraWinToolTip;
namespace WindowsFormsApplication366
public partial class Form1 : Form
public Form1()
InitializeComponent();
ultraGrid1.DataSource = GetTable();
static DataTable GetTable()
DataTable table = new DataTable();
table.Columns.Add("Checkbox", typeof(bool));
table.Columns.Add("Drug", typeof(string));
table.Rows.Add(true, "Indocin");
table.Rows.Add(false, "Enebrel");
table.Rows.Add(true, "Hydralazine");
table.Rows.Add(false, "Combivent");
table.Rows.Add(true, "Dilantin");
return table;
UltraToolTipInfo infoRow;
RowUIElement currentRow;
private void ultraGrid1_MouseEnterElement(object sender, Infragistics.Win.UIElementEventArgs e)
if (e.Element.GetAncestor(typeof(RowUIElement)) != null)
currentRow = (RowUIElement)e.Element.GetAncestor(typeof(RowUIElement)) as RowUIElement;
///If row background color have ornge then only on that row tooltip message show.
if ((currentRow != null && (bool)currentRow.Row.Cells["Checkbox"].Value == true) && currentRow.Row.Appearance.BackColor == Color.Orange)
infoRow = new UltraToolTipInfo(currentRow.Row.Index.ToString(), Infragistics.Win.ToolTipImage.Info, currentRow.Row.GetType().ToString(), Infragistics.Win.DefaultableBoolean.True);
ultraToolTipManager1.SetUltraToolTip(ultraGrid1, infoRow);
ultraToolTipManager1.ShowToolTip(ultraGrid1);
private void ultraGrid1_MouseLeaveElement(object sender, Infragistics.Win.UIElementEventArgs e)
ultraToolTipManager1.HideToolTip();
private void Form1_Load(object sender, EventArgs e)
ultraGrid1.Rows[0].Appearance.BackColor = Color.Orange;
ultraGrid1.Rows[2].Appearance.BackColor = Color.Green;
ultraGrid1.Rows[4].Appearance.BackColor = Color.Yellow;
I believe that the scenario you are describing is like the one from my last sample. If you feel that I do not understand you well, please if possible provide a sample project of your own, I will be happy to make it work for you.
Please do not hesitate to contact us if you need any additional assistance.
I have ultra win grid which contains 2 columns. First one is checkbox and second one is simple column. I have 20 records in ultra grid. Suppose checkbox column of 10 records is checked. Some rows whose checkbox column is checked have background orange, green and yellow. I want to show ultra tooltip message only on those rows whose checkbox column is checked and have row background as orange not for green or yellow.
Maybe My previous message was not able to describe my requirements completly. Help me !!!