AD
Administrator
Syncfusion Team
October 27, 2006 05:20 AM UTC
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
JV
October 27, 2006 07:31 PM UTC
Thanks Haneef. This is exactly what I was looking for.
JV