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.

GridListControl selection

Thread ID:





23863 Jan 21,2005 04:59 AM Jan 21,2005 06:17 AM Windows Forms 1
Tags: GridControl
Mike Woolley
Asked On January 21, 2005 04:59 AM

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 06:17 AM

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.

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.