// 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); }
public DataGridViewDisableButtonColumn() { CellTemplate = new DataGridViewDisableButtonCell(); }