Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
23863 | Jan 21,2005 09:59 AM UTC | Jan 21,2005 11:17 AM UTC | WinForms | 1 |
![]() |
Tags: GridControl |
//subscribe this.gridListControl1.Grid.PrepareViewStyleInfo += new GridPrepareViewStyleInfoEventHandler(Grid_PrepareViewStyleInfo); private void Grid_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e) { if(e.RowIndex > 0 && e.RowIndex == this.gridListControl1.Grid.CurrentCell.RowIndex) { e.Style.Borders.Bottom = this.gridListControl1.Grid.TableStyle.Borders.Bottom; e.Style.Borders.Top = this.gridListControl1.Grid.TableStyle.Borders.Top; e.Style.BorderMargins.Bottom = this.gridListControl1.Grid.TableStyle.BorderMargins.Bottom; e.Style.BorderMargins.Top = this.gridListControl1.Grid.TableStyle.BorderMargins.Top + 1; } }
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.