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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Show tooltips dynamically.

Thread ID:

Created:

Updated:

Platform:

Replies:

75688 Aug 6,2008 09:31 AM UTC Aug 8,2008 05:17 AM UTC WinForms 3
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On August 6, 2008 09:31 AM UTC

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 08:50 AM UTC

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 8, 2008 02:41 AM UTC

HI Srirajan,

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

Regards
-Kishan


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

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.

Warning Icon 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.Close Icon

;