BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
//say in formload, use this to make the grid''s selection color not affect anything
this.gridControl1.AlphaBlendSelectionColor = Color.FromArgb(1,0,0,0);
//then handle this event to specify the backcolor of any selected cell.
private void gridControl1_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e) { if(this.gridControl1.Selections.Ranges.AnyRangeContains(GridRangeInfo.Cell(e.RowIndex, e.ColIndex)) && !this.gridControl1.CurrentCell.IsEditing) e.Style.BackColor = mySelectionColor; }
GridCurrentCell cc = this.grid.CurrentCell;
if(e.RowIndex == cc.RowIndex && e.ColIndex > 0)
e.Style.BackColor = Color.Blue;
this.gridControl1.AlphaBlendSelectionColor = Color.FromArgb(0, Color.Blue);