* TreeView.cs: Do not create the treeview's handle when setting
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / DataGridViewColumnCollection.cs
index 1904d2d5b0ff4b0794f8f934b6e010fd9d3943b5..c6cfed37b9757ffca223b381c0a05fdce883e906 100644 (file)
@@ -31,6 +31,7 @@ using System.Collections;
 
 namespace System.Windows.Forms {
 
+       [ListBindable (false)]
        public class DataGridViewColumnCollection : BaseCollection, IList, ICollection, IEnumerable {
 
                private DataGridView dataGridView;
@@ -39,7 +40,7 @@ namespace System.Windows.Forms {
                        this.dataGridView = dataGridView;
                }
 
-               public bool IsFixedSize {
+               bool IList.IsFixedSize {
                        get { return base.List.IsFixedSize; }
                }
 
@@ -77,6 +78,7 @@ namespace System.Windows.Forms {
                        return result;
                }
 
+               [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
                public virtual int Add (string columnName, string headerText) {
                        DataGridViewColumn col = new DataGridViewColumn();
                        col.Name = columnName;