BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
private void gridControl1_CellDrawn(object sender, GridDrawCellEventArgs e) { GridCurrentCell cc = this.gridControl1.CurrentCell; if(e.ColIndex == cc.ColIndex && e.RowIndex == cc.RowIndex && this.gridControl1.Selections.Ranges.AnyRangeContains(GridRangeInfo.Cell(e.RowIndex, e.ColIndex)) && !cc.IsEditing) { using(SolidBrush br = new SolidBrush(this.gridControl1.AlphaBlendSelectionColor)) { e.Graphics.FillRectangle(br, e.Bounds); } } }
>private void gridControl1_CellDrawn(object sender, GridDrawCellEventArgs e) >{ > GridCurrentCell cc = this.gridControl1.CurrentCell; > if(e.ColIndex == cc.ColIndex && e.RowIndex == cc.RowIndex > && this.gridControl1.Selections.Ranges.AnyRangeContains(GridRangeInfo.Cell(e.RowIndex, e.ColIndex)) > && !cc.IsEditing) > { > using(SolidBrush br = new SolidBrush(this.gridControl1.AlphaBlendSelectionColor)) > { > e.Graphics.FillRectangle(br, e.Bounds); > } > } >} >>
private int originalCol = -1; private void gridDataBoundGrid1_CurrentCellMoving(object sender, GridCurrentCellMovingEventArgs e) { originalCol = this.gridDataBoundGrid1.CurrentCell.MoveToColIndex; } private void gridDataBoundGrid1_CurrentCellActivating(object sender, GridCurrentCellActivatingEventArgs e) { if(originalCol == 0) e.ColIndex = 0; }