Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
13902 | May 13,2004 07:07 AM UTC | May 14,2004 04:23 AM UTC | WinForms | 5 |
![]() |
Tags: GridControl |
this.gridDataBoundGrid1.ShowCurrentCellBorderBehavior = GridShowCurrentCellBorder.HideAlways;
To make the backcolor the same as the rest of a selected row, you can handle the PrepareViewStyleInfo event and set the backcolor of the current cell there.
private void grid_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e)
{
GridCurrentCell cc = this.grid.CurrentCell;
if(cc.RowIndex == e.RowIndex && cc.ColIndex == e.ColIndex)
e.Style.BackColor = this.grid.AlphaBlendSelectionColor;
}
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.