Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
7945 | Oct 15,2003 12:13 PM UTC | Oct 17,2003 01:19 PM UTC | WinForms | 9 |
![]() |
Tags: GridControl |
private void Form1_Load(object sender, System.EventArgs e) { this.gridControl1.ListBoxSelectionMode = SelectionMode.One; this.gridControl1.Model.Options.RefreshCurrentCellBehavior = GridRefreshCurrentCellBehavior.RefreshRow; } private void gridControl1_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e) { if(e.ColIndex > 0 && e.RowIndex == this.gridControl1.CurrentCell.RowIndex) { e.Style.BackColor = SystemColors.Highlight; e.Style.TextColor = Color.White; } }
private void gridControl1_CurrentCellMoved(object sender, GridCurrentCellMovedEventArgs e) { GridCurrentCell cc = this.gridControl1.CurrentCell; this.gridControl1.RefreshRange(GridRangeInfo.Row(cc.MoveToRowIndex)); this.gridControl1.RefreshRange(GridRangeInfo.Row(cc.MoveFromRowIndex)); }
this.gridControl1.AlphaBlendSelectionColor = Color.FromArgb(1, SystemColors.Highlight);
to see if that affects anything for you.
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.