DataGridColumnCollectionEditor.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WinForms / System / WinForms / Design / DataGridColumnCollectionEditor.cs / 1 / DataGridColumnCollectionEditor.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

namespace System.Windows.Forms.Design { 
 
    using System;
    using System.ComponentModel.Design; 

    internal class DataGridColumnCollectionEditor : CollectionEditor {

        // FxCop made me add this constructor 
        public DataGridColumnCollectionEditor(Type type) : base(type) {}
 
        ///  
        /// 
        ///      Retrieves the data types this collection can contain.  The default 
        ///      implementation looks inside of the collection for the Item property
        ///      and returns the returning datatype of the item.  Do not call this
        ///      method directly.  Instead, use the ItemTypes property.  Use this
        ///      method to override the default implementation. 
        /// 
        protected override Type[] CreateNewItemTypes() { 
            return new Type[] { 
                typeof(DataGridTextBoxColumn),
                typeof(DataGridBoolColumn) 
            };
        }
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.


                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK