private Rectangle GetRowHeaderBounds(GridPanel panel) { if (panel.ShowRowHeaders == true) { Rectangle r = BoundsRelative; r.Location = panel.PointToScroll(r.Location); r.Width = panel.RowHeaderWidth + 2; return (r); } return (Rectangle.Empty); }