Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
24949 | Feb 15,2005 12:31 PM UTC | Feb 15,2005 03:35 PM UTC | WinForms | 6 |
![]() |
Tags: GridControl |
grid.AlphaBlendSelectionColor = Color.FromArgb(0, grid.AlphaBlendSelectionColor);
This code makes the alpha value of the selection color to be zero, and should make the ''selected'' line invisible.
this.gridDataBoundGrid1.AlphaBlendSelectionColor = System.Drawing.Color.FromArgb(0, 178, 180, 191);
private void gridDataBoundGrid1_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e) { if(e.ColIndex > 0 && e.RowIndex > 0 && this.gridDataBoundGrid1.Selections.GetSelectedRows(true, true).AnyRangeContains(GridRangeInfo.Cell(e.RowIndex, e.ColIndex))) { e.Style.BackColor = Color.DodgerBlue; } }
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.