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

Turn off the selection cue lines in GridListControl

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

3 Replies

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


AC Aaron Ching 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?


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

Loader.
Live Chat Icon For mobile
Up arrow icon