Example #1
0
        // Override the Clone method so that the Enabled property is copied.
        public override object Clone()
        {
            DataGridViewDisableButtonCell Cell = (DataGridViewDisableButtonCell)base.Clone();

            Cell.Enabled = this.Enabled;
            return(Cell);
        }
Example #2
0
 public DataGridViewDisableButtonColumn()
 {
     CellTemplate = new DataGridViewDisableButtonCell();
 }