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.

Showing intellisense-like tooltips in DropDown cells part of GridControls

Thread ID:

Created:

Updated:

Platform:

Replies:

51065 Oct 26,2006 03:32 PM Oct 27,2006 03:31 PM Windows Forms 2
loading
Tags: GridControl
JV
Asked On October 26, 2006 03:32 PM

Hi,

I have a GridControl and one of the cells has DropDownStyle of GridDropDownStyle.AutoComplete.
In order to help the user decide which option to take I would like to show intellisense-like tooltips next to the option currently selected. It is too much information to have in the DropDown itself. Is it possible to do so?

Thanks in advance,

JV

Administrator [Syncfusion]
Replied On October 27, 2006 01:20 AM

Hi Jornei,

The attached sample shows how to add the tooltip to the dropdown control in a grid and also how to display the different text in a tooltip object. Below is a code snippet for GridListControl

//form load....
GridDropDownGridListControlCellRenderer cr = this.gridControl1.CellRenderers["GridListControl"] as GridDropDownGridListControlCellRenderer;
cr.ListControlPart.Grid.PrepareViewStyleInfo +=new GridPrepareViewStyleInfoEventHandler(Grid_PrepareViewStyleInfo);

private void Grid_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e)
{
GridControl grid = sender as GridControl;
this.toolTip1.SetToolTip( grid,e.Style.Text);
}

Here is a sample.
http://www.syncfusion.com/Support/user/uploads/DropDownToolTip_61634fb8.zip

Best Regards,
Haneef

JV
Replied On October 27, 2006 03:31 PM

Thanks Haneef. This is exactly what I was looking for.

JV

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.

;