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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Turn off the selection cue lines in GridListControl

Thread ID:





5087 Jun 18,2003 08:57 PM UTC Jun 19,2003 05:40 PM UTC WinForms 3
Tags: GridControl
Aaron Ching
Asked On June 18, 2003 08:57 PM UTC

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

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

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 19, 2003 12:34 AM UTC

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 05:40 PM UTC

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon