New Product Launch - BoldDesk !
Introducing help desk ticketing software.
New Product LaunchBoldDesk: Help desk ticketing software starts at $10 for 3 agents.
Try it for free.private int colorRow = -2; private int colorCol = -2; private void gridDataBoundGrid1_CurrentCellAcceptedChanges(object sender, CancelEventArgs e) { int tempRow = this.colorRow; int tempCol = this.colorCol; this.colorRow = -2; this.colorRow = -2; if(tempRow > -2) { //repaint the old one so color goes away this.gridDataBoundGrid1.RefreshRange(GridRangeInfo.Cell(tempRow, tempCol)); } GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell; this.colorCol = cc.ColIndex; this.colorRow = cc.RowIndex; //paint the new one this.gridDataBoundGrid1.RefreshRange(GridRangeInfo.Cell(this.colorRow, this.colorCol)); } private void gridDataBoundGrid1_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e) { if(e.ColIndex == this.colorCol && e.RowIndex == this.colorRow) { e.Style.BackColor = Color.Red; } }