We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Turn off the selection cue lines in GridListControl

Thread ID:





5087 Jun 18,2003 04:57 PM Jun 19,2003 01:40 PM Windows Forms 3
Tags: GridControl
Aaron Ching
Asked On June 18, 2003 04:57 PM

Hi, Me again on GridListControl. Can we turn off the selection cue lines in GridListControl? Aaron

Administrator [Syncfusion]
Replied On June 18, 2003 06:45 PM

Try making the alphablen selection color very transparent to see if that gives you what you want. gridListControl1.Grid.AlphaBlendSelectionColor = Color.FromArgb(1, 0, 0, 0);

Aaron Ching
Replied On June 18, 2003 08:34 PM

Hi Clay, Thanks for the prompt reply. Setting the AlphaBlendSelectionColor to Color.FromArgb(1,0,0,0) solves the backcolor issue but not the selection cue lines. (See attached bmp) Any idea how to get rid of the dotted lines around the selected row?

Administrator [Syncfusion]
Replied On June 19, 2003 01:40 PM

Add a handler for: gridListControl1.Grid.PrepareViewStyleInfo += new GridPrepareViewStyleInfoEventHandler(grid_PrepareViewStyleInfo); In the handler, have code like:
private void grid_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e)
	e.Style.Borders.All = new GridBorder(GridBorderStyle.Standard);
	e.Style.TextMargins.Left = 2;
	e.Style.TextMargins.Right = 2;
	e.Style.TextMargins.Top = 2;


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.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.