using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using System.Collections.Generic;

namespace SCAN
{
    public delegate void PaintEventHandler(Graphics g, Rectangle Bounds, CurrencyManager Source,
                              int RowNum, Brush BackBrush, Brush ForeBrush,
                              bool AlignToRight);

    class DataGridTextBoxColumnStyle : DataGridTextBoxColumn
    {
        public event PaintEventHandler OnPaint;
        protected override void Paint(Graphics g, Rectangle Bounds, CurrencyManager Source,
                              int RowNum, Brush BackBrush, Brush ForeBrush,
                              bool AlignToRight)
        {
            OnPaint(g, Bounds, Source, RowNum, BackBrush, ForeBrush, AlignToRight);
        }
    }
}
