I think you have to use PrepareViewStyleInfo to do something like this. In the event, test whether the mouse is over the cell being requested, and if so, color the text.
To force the PrepareViewStyleInfo event to be fired when you need it, you can use the CellMouseHoverEnter and CellMouseHoverLeave events.
private void gridDataBoundGrid1_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e)
{
if(e.ColIndex > 0 && e.RowIndex > 0)
{
int row, col;
Point pt = this.gridDataBoundGrid1.PointToClient(Control.MousePosition);
if(this.gridDataBoundGrid1.PointToRowCol(pt, out row, out col, -1)
&& row == e.RowIndex && col == e.ColIndex)
{
e.Style.TextColor = Color.Blue;
}
}
}
private void gridDataBoundGrid1_CellMouseHoverEnter(object sender, GridCellMouseEventArgs e)
{
this.gridDataBoundGrid1.RefreshRange(GridRangeInfo.Cell(e.RowIndex, e.ColIndex));
}
private void gridDataBoundGrid1_CellMouseHoverLeave(object sender, GridCellMouseEventArgs e)
{
this.gridDataBoundGrid1.RefreshRange(GridRangeInfo.Cell(e.RowIndex, e.ColIndex));
}