diff -r 0c551e8818e0 -r f652ab1e06e2 External/Aga.Controls/Tree/TreeViewAdv.Draw.cs --- a/External/Aga.Controls/Tree/TreeViewAdv.Draw.cs Sun May 27 15:16:19 2012 +0000 +++ b/External/Aga.Controls/Tree/TreeViewAdv.Draw.cs Sun May 27 16:08:54 2012 +0000 @@ -135,6 +135,10 @@ OnRowDraw(e, node, context, row, rowRect); + if ((GridLineStyle & GridLineStyle.Horizontal) == GridLineStyle.Horizontal) { + e.Graphics.DrawLine(LightGrayPen, 0, rowRect.Bottom, e.Graphics.ClipBounds.Right, rowRect.Bottom); + } + if (FullRowSelect) { context.DrawFocus = false; @@ -143,26 +147,26 @@ Rectangle focusRect = new Rectangle(OffsetX, rowRect.Y, ClientRectangle.Width, rowRect.Height); if (context.DrawSelection == DrawSelectionMode.Active) { - e.Graphics.FillRectangle(SystemBrushes.Highlight, focusRect); + e.Graphics.FillRectangle(GrayBrush, focusRect); context.DrawSelection = DrawSelectionMode.FullRowSelect; } else { - e.Graphics.FillRectangle(SystemBrushes.InactiveBorder, focusRect); + e.Graphics.FillRectangle(GrayBrush, focusRect); context.DrawSelection = DrawSelectionMode.None; } } } - if ((GridLineStyle & GridLineStyle.Horizontal) == GridLineStyle.Horizontal) - e.Graphics.DrawLine(SystemPens.InactiveBorder, 0, rowRect.Bottom, e.Graphics.ClipBounds.Right, rowRect.Bottom); - if (ShowLines) DrawLines(e.Graphics, node, rowRect); DrawNode(node, context); } + private Brush GrayBrush = new SolidBrush(Color.FromArgb(240, 240, 240)); + private Pen LightGrayPen = new Pen(Color.FromArgb(247, 247, 247)); + private void DrawVerticalGridLines(Graphics gr, int y) { int x = 0;