[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] [System.ComponentModel.TypeConverter(typeof(ExpandableObjectConverter))] public DataGridViewColumnCollection GridColumns { set { _GridColumns = value; // need serializeing } get { if (_GridColumns == null) _GridColumns = new DataGridViewColumnCollection(new DataGridView()); return _GridColumns; } } --------------------------------------------------------------------- public int Width { set { _Width = value; //Does not need serializeing } get { if (_Width == null) _Width = new DataGridViewColumnCollection(new DataGridView()); return _Width; } }
Serializable
System.Int32
DataGridViewColumnCollection
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)