public override object Clone()
        {
            baseGridViewImageColumn col = base.Clone() as baseGridViewImageColumn;

            col.myValue = _myValue;
            return(col);
        }
        protected override object GetFormattedValue(object value,
                                                    int rowIndex, ref DataGridViewCellStyle cellStyle,
                                                    System.ComponentModel.TypeConverter valueTypeConverter,
                                                    System.ComponentModel.TypeConverter formattedValueTypeConverter,
                                                    DataGridViewDataErrorContexts context)
        {
            string status = "";
            // Try to get the default value from the containing column
            baseGridViewImageColumn owningCol = OwningColumn as baseGridViewImageColumn;

            if (owningCol != null)
            {
                status = owningCol.myValue;
            }
            if (value is string)
            {
                status = (string)value;
            }
            cellStyle.Alignment = DataGridViewContentAlignment.TopCenter;
            return(GetCellImage(status));
        }