|
//Set the ToolTip text for particular cell.
this.gridControl1[1, 1].CellTipText = "Hello";
//Adding ToolTip to the specific column
this.gridControl1.ColStyles[1].CellTipText = "Hello";
//Adding ToolTip to the specific row
this.gridControl1.RowStyles[2].CellTipText = "Hello";
this.gridControl1.QueryCellInfo += gridControl1_QueryCellInfo;
void gridControl1_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e)
{
// Enabling comment tip for particular cell.
if (e.RowIndex == 1 && e.ColIndex == 1)
e.Style.CellTipText = "Cell comment";
// Enabling comment tip for row.
if (e.ColIndex > 0 && e.RowIndex == 5)
e.Style.CellTipText = "Row comment";
// Enabling comment tip for column.
if (e.RowIndex > 0 && e.ColIndex == 4)
e.Style.CellTipText = "Column comment";
} |