Posted 10 January 2018, 1:59 pm EST
Hi Wolfgang,
You may show tooltip with some delay for each C1FlexGrid cell, by setting the UserData for each cell (using e.Text) in OwnerDrawCell event and then show a tooltip for the cell and set its tooltip by accessing this UserData in MouseMove event as follows:
private void c1FlexGrid1_OwnerDrawCell(object sender, C1.Win.C1FlexGrid.OwnerDrawCellEventArgs e)
{
if (!e.Measuring && e.Row >= this.c1FlexGrid1.Rows.Fixed && e.Col >= this.c1FlexGrid1.Cols.Fixed)
{
this.c1FlexGrid1.SetUserData(e.Row, e.Col, e.Text);
}
}
private void c1FlexGrid1_MouseMove(object sender, MouseEventArgs e)
{
if(c1FlexGrid1.MouseRow>0 && c1FlexGrid1.MouseCol>0)
{
string tip;
tip = (string)this.c1FlexGrid1.GetUserData(c1FlexGrid1.MouseRow, c1FlexGrid1.MouseCol);
toolTip1.SetToolTip(c1FlexGrid1, tip);
}
}
Let me know if that is satisfactory for you !
Thanks,
Ruchir Agarwal