Home Forums WinForms controls Xceed Grid for WinForms Current Cell BackColor Reply To: Current Cell BackColor

User (Old forums)
Member
Post count: 23064

Sorry… missed a line copying over…

protected void Grid_CurrentCellChanged(object sender, EventArgs e)
{
GridControl mGrid = (GridControl)sender;
if (mGrid != null && mGrid.CurrentCell != null)
{
Cell cell = mGrid.CurrentCell;
if (cell.IsCurrent)
{
cell.BackColor = _selectedColor;
}
else
{
cell.ResetBackColor()
}
}
}

Imported from legacy forums. Posted by csperler (had 320 views)