Ejemplo n.º 1
0
        public void PaintCells(Rectangle clipBounds, DataGridViewPaintParts paintParts)
        {
            if (rowIndex < 0 || rowIndex >= dataGridView.Rows.Count)
            {
                throw new InvalidOperationException("Invalid RowIndex.");
            }

            DataGridViewRow row = dataGridView.GetRowInternal(rowIndex);

            row.PaintCells(graphics, clipBounds, rowBounds, rowIndex, rowState, isFirstDisplayedRow, isLastVisibleRow, paintParts);
        }
Ejemplo n.º 2
0
        public void DrawFocus(Rectangle bounds, bool cellsPaintSelectionBackground)
        {
            if (rowIndex < 0 || rowIndex >= dataGridView.Rows.Count)
            {
                throw new InvalidOperationException("Invalid RowIndex.");
            }

            DataGridViewRow row = dataGridView.GetRowInternal(rowIndex);

            row.PaintCells(graphics, clipBounds, bounds, rowIndex, rowState, isFirstDisplayedRow, isLastVisibleRow, DataGridViewPaintParts.Focus);
        }