Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
5024 | Jun 16,2003 01:05 AM UTC | Jun 17,2003 10:22 PM UTC | WinForms | 4 |
![]() |
Tags: GridControl |
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(); } } }
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.