Пример #1
0
        /// <summary>
        /// paint row dividers
        /// </summary>
        /// <param name="tableControl"></param>
        /// <param name="header"></param>
        /// <param name="g"></param>
        /// <param name="pen"></param>
        protected void DrawLineDividers(Header header, Graphics g, Pen pen)
        {
            //draw lines
            //Point corner = GetCorner();
            if (tableControl.RowHeight > 0)
            {
                int y = GetClientRectangle().Top + tableControl.TitleHeight - 1;

                if (tableControl.RowHeight > 0)
                {
                    while (y < tableControl.GetTotalRowDividerHeight())
                    {
                        if (y > tableControl.TitleHeight) // don't paint the divider inside header
                        {
                            RowDividerRenderer.Render(g, pen, tableControl.BorderHeight, TableControl.Factor, GetClientRectangle().Left, y, GetClientRectangle().Right - 1);
                        }
                        y += tableControl.RowHeight;
                    }
                }
            }
        }