1
Vote

Hide Column Headers

description

Hi, I had to make one modification to your DataGridViewDrawer.cs routine in the PaintPartition to ensure that hidden headers were not printed:
 
    public override void PaintPartition(Graphics graphic, PointF location, PartitionElement element)
    {
        StartPrintingElement(graphic);
        float currentY;
 
        var bounds = new RectangleF(location, element.Size);
 
        if (this.GridView.ColumnHeadersVisible)
            currentY = DrawColumnsHeader(graphic, bounds, element);
        else
            currentY = bounds.Top;
 
        DrawRows(graphic, bounds, element, currentY);
    }
 
It would be good to have this in the 'official' release.
 
Thanks, Neil

comments