BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
private void gridDataBoundGrid1_CellDrawn(object sender, GridDrawCellEventArgs e)
{
GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell;
if(e.ColIndex == cc.ColIndex && e.RowIndex == cc.RowIndex)
{
using(SolidBrush br = new SolidBrush(this.gridDataBoundGrid1.AlphaBlendSelectionColor))
{
e.Graphics.FillRectangle(br, e.Bounds);
}
}
}
private void model_SelectionChanged(object sender, GridSelectionChangedEventArgs e) { if(e.Range.Width > 1 || e.Range.Height > 1) { GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell; this.gridDataBoundGrid1.RefreshRange(cc.RangeInfo, true); } } private void gridDataBoundGrid1_CellDrawn(object sender, GridDrawCellEventArgs e) { GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell; if(e.ColIndex == cc.ColIndex && e.RowIndex == cc.RowIndex && this.gridDataBoundGrid1.Selections.Ranges.AnyRangeContains(cc.RangeInfo)) { using(SolidBrush br = new SolidBrush(this.gridDataBoundGrid1.AlphaBlendSelectionColor)) { e.Graphics.FillRectangle(br, e.Bounds); } } }