Hi Daniel,
Thank you for your update.
You need to handle the PrepareViewStyleInfo and Click event of GridDataBoundGrid.
Please refer the code:
ArrayList doubleClickedCells = new ArrayList();
void gridDataBoundGrid1_Click(object sender, EventArgs e)
{
int row, col;
Point pt = this.gridDataBoundGrid1.PointToClient(Cursor.Position);
if (this.gridDataBoundGrid1.PointToRowCol(pt, out row, out col))
{
int code = GetLookUpCode(row, col);
if (doubleClickedCells.IndexOf(code) == -1)
doubleClickedCells.Add(code);
else
doubleClickedCells.Remove(code);
this.gridDataBoundGrid1.RefreshRange(GridRangeInfo.Cell(row, col), true);
}
}
private int GetLookUpCode(int row, int col)
{ return 10000 * col + row; }
void gridDataBoundGrid1_PrepareViewStyleInfo(object sender, Syncfusion.Windows.Forms.Grid.GridPrepareViewStyleInfoEventArgs e)
{
if (doubleClickedCells.IndexOf(GetLookUpCode(e.RowIndex, e.ColIndex)) > -1)
{
e.Style.TextColor = Color.Blue;
}
}
Please refer the sample to illustrates this:
GDBGChangeColor.zipPlease let me know if this helps.
Regards,
Jisha