asked on 22 May 2021, 10:59 AM
| edited on 22 May 2021, 11:01 AM
Hi, can I use callout control to display additional information, from a datagridview cell instead of a tooltip ?
if yes can u leave a sample please...
thx in advance,
1 Answer, 1 is accepted
Dess | Tech Support Engineer, Principal
answered on 24 May 2021, 01:02 PM
You can handle the RadGridView.ToolTipTextNeeded event and instead of specifying the text for the tooltip, you can show programmatically a RadCallout. I have prepared a sample code snippet for your reference:
for (int i = 0; i < 10; i++)
this.radGridView1.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;
label = new RadLabel();
label.Text = "Telerik";
callout = new RadCallout();
callout.AssociatedControl = label;
privatevoidradGridView1_ToolTipTextNeeded(object sender, ToolTipTextNeededEventArgs e)
Point pt = this.radGridView1.PointToClient(MousePosition);
GridDataCellElement cellUnderMouse = this.radGridView1.ElementTree.GetElementAtPoint(pt) as GridDataCellElement;
if (cellUnderMouse != null)
label.Text = cellUnderMouse.Value + "";
I hope this information helps. If you need any further assistance please don't hesitate to contact me.
Dess | Tech Support Engineer, Sr.
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.