BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
private void gridControl1_SaveCellInfo(object sender, GridSaveCellInfoEventArgs e) { if(e.ColIndex > 1 && e.RowIndex > 1) { if(this.gridControl1[e.RowIndex, e.ColIndex-1].Borders.Right != style.Borders.Left) this.gridControl1[e.RowIndex, e.ColIndex-1].Borders.Right = style.Borders.Left; if(this.gridControl1[e.RowIndex - 1, e.ColIndex].Borders.Bottom != style.Borders.Top) this.gridControl1[e.RowIndex - 1, e.ColIndex].Borders.Bottom = style.Borders.Top; } } private void gridControl1_PrepareViewStyleInfo(object sender, Grid.GridPrepareViewStyleInfoEventArgs e) { if(e.ColIndex > 0 && e.RowIndex > 0) { e.Style.Borders.Left = new GridBorder(GridBorderStyle.None); e.Style.Borders.Top = new GridBorder(GridBorderStyle.None); } }
private void gridControl1_SaveCellInfo(object sender, GridSaveCellInfoEventArgs e) { if(e.ColIndex > 1 && e.RowIndex > 1) { if(this.gridControl1[e.RowIndex, e.ColIndex-1].Borders.Right != e.Style.Borders.Left) { this.gridControl1.SuspendChangeEvents(); this.gridControl1[e.RowIndex, e.ColIndex-1].Borders.Right = e.Style.Borders.Left; this.gridControl1.ResumeChangeEvents(); } if(this.gridControl1[e.RowIndex - 1, e.ColIndex].Borders.Bottom != e.Style.Borders.Top) { this.gridControl1.SuspendChangeEvents(); this.gridControl1[e.RowIndex - 1, e.ColIndex].Borders.Bottom = e.Style.Borders.Top; this.gridControl1.ResumeChangeEvents(); } } }