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

GridListControl selection

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?

1 Reply

AD Administrator Syncfusion Team 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;


Live Chat Icon For mobile
Up arrow icon