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

GridListControl selection

Thread ID:





23863 Jan 21,2005 09:59 AM UTC Jan 21,2005 11:17 AM UTC WinForms 1
Tags: GridControl
Mike Woolley
Asked On January 21, 2005 09:59 AM UTC

Hi, I''m using a GridListControl and would like to turn off the dotted blue border around the currently selected line. I''ve tried setting current cell borders, etc. but can''t seem to get rid of it! Any ideas?

Administrator [Syncfusion]
Replied On January 21, 2005 11:17 AM UTC

Try handling the gridListControl.Grid.PrepareViewStyleInfo event and reset the borders at that point.
this.gridListControl1.Grid.PrepareViewStyleInfo += new GridPrepareViewStyleInfoEventHandler(Grid_PrepareViewStyleInfo);

private void Grid_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e)
	if(e.RowIndex > 0 && e.RowIndex == this.gridListControl1.Grid.CurrentCell.RowIndex)
		e.Style.Borders.Bottom = this.gridListControl1.Grid.TableStyle.Borders.Bottom;
		e.Style.Borders.Top = this.gridListControl1.Grid.TableStyle.Borders.Top;
		e.Style.BorderMargins.Bottom = this.gridListControl1.Grid.TableStyle.BorderMargins.Bottom;
		e.Style.BorderMargins.Top = this.gridListControl1.Grid.TableStyle.BorderMargins.Top + 1;


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