Code:
                         / Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / WinForms / Managed / System / WinForms / DataGridViewColumn.cs / 1 / DataGridViewColumn.cs
                        
                        
                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
//  
//----------------------------------------------------------------------------- 
namespace System.Windows.Forms 
{ 
    using System;
    using System.Text; 
    using System.ComponentModel;
    using System.ComponentModel.Design;
    using System.Globalization;
    using System.Diagnostics; 
    using System.Diagnostics.CodeAnalysis;
 
    /// 
    ///     Base class for the columns in a data grid view.  
    ///  
    [
        Designer("System.Windows.Forms.Design.DataGridViewColumnDesigner, " + AssemblyRef.SystemDesign),
        TypeConverterAttribute(typeof(DataGridViewColumnConverter)), 
        ToolboxItem(false),
        DesignTimeVisible(false) 
    ] 
    public class DataGridViewColumn : DataGridViewBand, IComponent
    { 
        private const float DATAGRIDVIEWCOLUMN_defaultFillWeight = 100F;
        private const int   DATAGRIDVIEWCOLUMN_defaultWidth = 100;
        private const int   DATAGRIDVIEWCOLUMN_defaultMinColumnThickness = 5;
 
        private const byte DATAGRIDVIEWCOLUMN_automaticSort                     = 0x01;
        private const byte DATAGRIDVIEWCOLUMN_programmaticSort                  = 0x02; 
        private const byte DATAGRIDVIEWCOLUMN_isDataBound                       = 0x04; 
        private const byte DATAGRIDVIEWCOLUMN_isBrowsableInternal               = 0x08;
        private const byte DATAGRIDVIEWCOLUMN_displayIndexHasChangedInternal    = 0x10; 
        private byte flags;  // see DATAGRIDVIEWCOLUMN_ consts above
        private DataGridViewCell cellTemplate;
        private string name; 
        private int displayIndex;
        private int desiredFillWidth = 0; 
        private int desiredMinimumWidth = 0; 
        private float fillWeight, usedFillWeight;
        private DataGridViewAutoSizeColumnMode autoSizeMode; 
        private int boundColumnIndex = -1;
        private string dataPropertyName = String.Empty;
        private TypeConverter boundColumnConverter = null;
 
        // needed for IComponent
        private ISite site = null; 
        private EventHandler disposed = null; 
        private static readonly int PropDataGridViewColumnValueType = PropertyStore.CreateKey(); 
        /// 
        ///     
        ///       Initializes a new instance of the   
        ///   
        public DataGridViewColumn() : this((DataGridViewCell) null)
        { 
        }
        /// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
//  
//----------------------------------------------------------------------------- 
namespace System.Windows.Forms 
{ 
    using System;
    using System.Text; 
    using System.ComponentModel;
    using System.ComponentModel.Design;
    using System.Globalization;
    using System.Diagnostics; 
    using System.Diagnostics.CodeAnalysis;
 
    /// 
    ///     Base class for the columns in a data grid view.  
    ///  
    [
        Designer("System.Windows.Forms.Design.DataGridViewColumnDesigner, " + AssemblyRef.SystemDesign),
        TypeConverterAttribute(typeof(DataGridViewColumnConverter)), 
        ToolboxItem(false),
        DesignTimeVisible(false) 
    ] 
    public class DataGridViewColumn : DataGridViewBand, IComponent
    { 
        private const float DATAGRIDVIEWCOLUMN_defaultFillWeight = 100F;
        private const int   DATAGRIDVIEWCOLUMN_defaultWidth = 100;
        private const int   DATAGRIDVIEWCOLUMN_defaultMinColumnThickness = 5;
 
        private const byte DATAGRIDVIEWCOLUMN_automaticSort                     = 0x01;
        private const byte DATAGRIDVIEWCOLUMN_programmaticSort                  = 0x02; 
        private const byte DATAGRIDVIEWCOLUMN_isDataBound                       = 0x04; 
        private const byte DATAGRIDVIEWCOLUMN_isBrowsableInternal               = 0x08;
        private const byte DATAGRIDVIEWCOLUMN_displayIndexHasChangedInternal    = 0x10; 
        private byte flags;  // see DATAGRIDVIEWCOLUMN_ consts above
        private DataGridViewCell cellTemplate;
        private string name; 
        private int displayIndex;
        private int desiredFillWidth = 0; 
        private int desiredMinimumWidth = 0; 
        private float fillWeight, usedFillWeight;
        private DataGridViewAutoSizeColumnMode autoSizeMode; 
        private int boundColumnIndex = -1;
        private string dataPropertyName = String.Empty;
        private TypeConverter boundColumnConverter = null;
 
        // needed for IComponent
        private ISite site = null; 
        private EventHandler disposed = null; 
        private static readonly int PropDataGridViewColumnValueType = PropertyStore.CreateKey(); 
        /// 
        ///     
        ///       Initializes a new instance of the   
        ///   
        public DataGridViewColumn() : this((DataGridViewCell) null)
        { 
        }
        /// 
                        
                        
                        
                    Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Drawing.cs
- RemotingException.cs
- SQLDoubleStorage.cs
- Logging.cs
- WindowsScrollBarBits.cs
- RoleGroup.cs
- NodeFunctions.cs
- SqlInfoMessageEvent.cs
- CommandID.cs
- DataException.cs
- FontWeightConverter.cs
- GcHandle.cs
- SqlStatistics.cs
- XmlProcessingInstruction.cs
- Pair.cs
- DeclarativeCatalogPart.cs
- Normalization.cs
- URLEditor.cs
- TextEvent.cs
- cookieexception.cs
- SortedDictionary.cs
- DataControlCommands.cs
- WebServiceReceive.cs
- SchemaElementDecl.cs
- TypeListConverter.cs
- XmlSchemaGroupRef.cs
- WindowsFormsHostPropertyMap.cs
- BitmapInitialize.cs
- DataRowView.cs
- SvcMapFileSerializer.cs
- NonClientArea.cs
- Deflater.cs
- InternalsVisibleToAttribute.cs
- MessageHeaderAttribute.cs
- ProtocolViolationException.cs
- CustomError.cs
- IPAddressCollection.cs
- BitmapEffectDrawingContextWalker.cs
- XmlElementElement.cs
- Translator.cs
- CustomTrackingQuery.cs
- DateTimeFormatInfo.cs
- StringComparer.cs
- MSAANativeProvider.cs
- RequestTimeoutManager.cs
- OleDbReferenceCollection.cs
- RequestTimeoutManager.cs
- ExpressionBuilderCollection.cs
- MessagePropertyFilter.cs
- AppDomain.cs
- SerialReceived.cs
- ElementProxy.cs
- WebPart.cs
- DefaultParameterValueAttribute.cs
- X509IssuerSerialKeyIdentifierClause.cs
- ListViewSelectEventArgs.cs
- DrawListViewSubItemEventArgs.cs
- HttpFileCollectionWrapper.cs
- SafeHandle.cs
- EmptyEnumerator.cs
- PublisherMembershipCondition.cs
- Unit.cs
- Transform.cs
- Console.cs
- SkewTransform.cs
- WindowsAuthenticationModule.cs
- StringArrayConverter.cs
- Decimal.cs
- StaticExtensionConverter.cs
- TdsParameterSetter.cs
- IDispatchConstantAttribute.cs
- DbProviderFactory.cs
- HMACSHA256.cs
- SafeMarshalContext.cs
- StructuredType.cs
- AutomationPatternInfo.cs
- CodeObject.cs
- FtpWebRequest.cs
- DataSourceHelper.cs
- CookieParameter.cs
- HttpCookie.cs
- _Events.cs
- ComponentGuaranteesAttribute.cs
- BitmapEffectGroup.cs
- PieceDirectory.cs
- PropertyOrder.cs
- DataGridColumnCollection.cs
- ProfileService.cs
- MessageContractExporter.cs
- CharacterMetrics.cs
- UidManager.cs
- COM2IProvidePropertyBuilderHandler.cs
- BaseCollection.cs
- Transform3DCollection.cs
- Context.cs
- XmlToDatasetMap.cs
- Missing.cs
- MethodCallExpression.cs
- TemplateAction.cs
- ViewManager.cs