Hi Ruslan,
In order to use SuperToolTip in GridGroupingControl, you need to use ToolTipInfo class which holds the information to be displayed using SuperToolTip control.
Once the information part is formatted with the help of ToolTipInfo object, then SuperToolTip Show() method can be called by passing ToolTipInfo object as argument to it to display the information.
To see the SuperToolTip implementation focus the grid and move the mouse over its cell.
\\ Event :
this.gridGroupingControl1.TableControlCellMouseHover += new GridTableControlCellMouseEventHandler(gridGroupingControl1_TableControlCellMouseHover);
\\ Handler :
int row, col;
GridCurrentCell cc = this.gridGroupingControl1.TableControl.CurrentCell;
if (cc.RowIndex >= 1 && cc.ColIndex >= 1)
{
if (this.gridGroupingControl1.TableControl.PointToRowCol(new Point(e.Inner.MouseEventArgs.X, e.Inner.MouseEventArgs.Y), out row, out col) && (col != hooverCol || row != hooverRow))
{
hooverCol = col;
hooverRow = row;
Rectangle rect = this.gridGroupingControl1.TableControl.GetCellRenderer(row, col).GetCellBoundsCore(row, col, false);
Point screenPoint = this.gridGroupingControl1.TableControl.PointToScreen(new Point(rect.Left, rect.Top));
// This class is used to hold the formatted information to be passed to Show() of SuperToolTip control.
ToolTipInfo tinfo = new ToolTipInfo();
tinfo.Body.Text = string.Format("Body Section:");
tinfo.Header.Text = string.Format("Header Text: row {0}, column {1}", hooverRow, hooverCol);
tinfo.Footer.Text = string.Format("Footer section;");
tinfo.BackColor = Color.Red;
tinfo.BorderColor = Color.Green;
tinfo.ForeColor = Color.Black;
// This will show the separator line like as we have in file menu of MS Office
tinfo.Separator = true;
// This displays the formatted information stored in the tooltipinfo object
superToolTip1.Show(tinfo, screenPoint, 3000);
}
}
Please find the sample:
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=64026(SuperToolTipsInGridGroupingControl)843987632.zipRegards,
Jisha