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.

Supertooltip on specific column of GGC

Thread ID:

Created:

Updated:

Platform:

Replies:

75570 Jul 30,2008 12:23 PM Aug 5,2008 02:15 AM Windows Forms 3
loading
Tags: GridControl
reza fotovat
Asked On July 30, 2008 12:23 PM

Hello

I want to supertoolstrip shows only when the mouse in hover\enter on cells of specific column not every col

what's the solution ?

thanks


Jisha Joy [Syncfusion]
Replied On July 31, 2008 06:56 AM

Hi Reza,

Thank you for your interest in Syncfusion Products.

Supertooltip for one Column

This can be achieved by handling the TableControl.ActivateToolTip event of GridGroupingControl and set the Tooltip to the specified column.

Please refer the code:



[c#]

this.gridGroupingControl1.TableControl.ActivateToolTip += new GridActivateToolTipEventHandler(TableControl_ActivateToolTip);

private SuperToolTip sToolTip;

void TableControl_ActivateToolTip(object sender, GridActivateToolTipEventArgs e)
{
if (e.ColIndex == 1)
{
e.Cancel = true;
ToolTipInfo tipInfo = new ToolTipInfo();
tipInfo.BackColor = Color.Red;
tipInfo.Body.Text = e.Style.Text;
sToolTip.Show(tipInfo, MousePosition);

}
else
{
sToolTip.Hide();
}

}



Please refer the sample:

http://www.syncfusion.com/support/user/uploads/GGC_SuperToolTip_38dfc905.zip


Please let me know if this helps.

Regards,
Jisha



reza fotovat
Replied On July 31, 2008 01:50 PM

Hi,

thanks for your solution, it works great.

how about the image cols? is it possible to update the tooltipinfo.body.image from a image col of ggc ? (like the text you did it?

reards



Jisha Joy [Syncfusion]
Replied On August 5, 2008 02:15 AM


Hi Hari,

Please refer the modified sample as per your requirement:

http://www.syncfusion.com/support/user/uploads/GGC_SuperToolTip_70ec9563.zip

Please refer the sample and let me know if this helps.

Regards,
Jisha



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.

;