Display Tooltip on GGC cell

Hi, is there a way to programmatically display the tooltip on a given cell?


2 Replies

BB Bruce Bradford September 17, 2008 04:08 PM UTC



>Hi, is there a way to programmatically display the tooltip on a given cell?



I was able to get the tooltip text associated with a cell by using:
SwfWindow("xxx").SwfObject("yyy").Object.Table.GetTableCellStyle(CInt(4), CInt(10)).CellTipText
Assuming the cell I wanted was row4 column10.

Now my question is how do I make the tooltip popup automatically on a cell?

Thanks



SR Srividhya R Syncfusion Team November 4, 2008 05:43 AM UTC

Hi brxb,

Thanks for your interest in Syncfusion products.

You need to handle QueryCellStyleInfo event to set/get tooltip for a grid cell. Below is a sample code snippet.


gridGroupingControl1.QueryCellStyleInfo += new GridTableCellStyleInfoEventHandler(gridGroupingControl1_QueryCellStyleInfo);

void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
e.Style.CellTipText = e.Style.CellType.ToString() + "Cell";
}


Please try this code and let us know if this helps.

Regards,
Srividhya R


Loader.
Up arrow icon