private void PaintTopLeftHeaderCell(Graphics g)
{
if (g.IsVisible(this.layout.TopLeftHeader))
{
DataGridViewCell cell = this.TopLeftHeaderCell;
DataGridViewCellStyle inheritedCellStyle = new DataGridViewCellStyle();
BuildInheritedColumnHeaderCellStyle(inheritedCellStyle, cell);
Rectangle cellBounds = this.layout.TopLeftHeader;
cellBounds.Width = this.rowHeadersWidth;
cellBounds.Height = this.columnHeadersHeight;
// [....]: Should paintSelectionBackground be dev-settable?
cell.PaintWork(g,
this.layout.TopLeftHeader,
cellBounds,
-1,
cell.State,
inheritedCellStyle,
this.AdjustedTopLeftHeaderBorderStyle,
DataGridViewPaintParts.Background | DataGridViewPaintParts.Border | DataGridViewPaintParts.ContentBackground | DataGridViewPaintParts.ContentForeground | DataGridViewPaintParts.ErrorIcon | DataGridViewPaintParts.SelectionBackground);
}
}