Hello
Maybe a simple question, but I can't a simple way to do this
I have a table with 3 columns (CodeID, CodeDesc and CodeLongDesc)
ReasonCmb.DisplayMember = "CodeDesc"; ReasonCmb.ValueMember = "CodeID";
I would like to set a tooltip displaying the long description column, is it possible?
Hello Marco,
Thank you for contacting. Yes ,you can have the tooltip on the control for your long text combo column.
You will need to include ultraToolTipManager1 component and then trap ValueChanged combo event, find the correct text (using IValueList.GetText) and then set the tooltip on the UltraCombo control , like this:
private void UltraCombo1_ValueChanged(object sender, EventArgs e) { var combo = (UltraCombo)sender; var valueList = (IValueList)sender; int index = -1; valueList.GetText(combo.Value, ref index); string toolTipText; var codeLongDescColumn = combo.DisplayLayout.Bands[0].Columns["CodeLongDesc"]; if (index >= 0) toolTipText = combo.Rows[index].GetCellText(codeLongDescColumn); else toolTipText = null; var toolTipInfo = ultraToolTipManager1.GetUltraToolTip(combo); toolTipInfo.ToolTipText = toolTipText; }
I have also attached a sample project for the reference.Let me know if you have any question.
Sincerely,Divya Jain
6237.TestSample.zip
thank you so much, that works great