We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Show tooltips dynamically.

Thread ID:

Created:

Updated:

Platform:

Replies:

75688 Aug 6,2008 05:31 AM Aug 8,2008 01:17 AM Windows Forms 3
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On August 6, 2008 05:31 AM

Hi,

1) How can I show tooltips to all column headers in a grid dynamically?

2) How can I show tooltip to text boxes, comboboxes, lookup textboxes etc... in a form dynamically?

Thanks
-Kishan


Sri Rajan [Syncfusion]
Replied On August 7, 2008 04:50 AM

Hi Kishan,

Thank you for your interest in Syncfusion products.

1) How can I show tooltips to all column headers in a grid dynamically?
-----------------------------------------------------------------------
You need to handle QueryCellInfo event and set the CellTipText Property for RowIndex 0, to show tooltips to all column headers in a grid dynamically.

void gridControl1_QueryCellInfo(object sender, Syncfusion.Windows.Forms.Grid.GridQueryCellInfoEventArgs e)
{
if (e.RowIndex == 0)
{
e.Style.CellTipText = "Tool tip text";
}
}


2) How can I show tooltip to text boxes, comboboxes, lookup textboxes etc... in a form dynamically?
------------------------------------------------------------------------
Please refer the below code to show ToolTip dynamically for TextBox and ComboBox.

ToolTip tooltip = new ToolTip();

void comboBoxAdv1_MouseHover(object sender, EventArgs e)
{
this.tooltip.SetToolTip(this.comboBoxAdv1, "ComboBox ToolTip");
}

void textBoxExt1_MouseHover(object sender, EventArgs e)
{
this.tooltip.SetToolTip(this.textBoxExt1, "TextBox ToolTip");
}


Please let me know if this helps.

Best Regards,
Srirajan.


Administrator [Syncfusion]
Replied On August 7, 2008 10:41 PM

HI Srirajan,

Thanks for reply.
Will you please send me sample application.

Regards
-Kishan


Sri Rajan [Syncfusion]
Replied On August 8, 2008 01:17 AM

Hi Kishan,

Thank you for your continued interest in Syncfusion products.

Here is the minimal sample which implements this task.
http://websamples.syncfusion.com/samples/grid.windows/F75688/main.htm

Please let me know if this helps.

Best Regards,
Srirajan.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;