Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / WebControls / ColumnCollectionEditor.cs / 1 / ColumnCollectionEditor.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.Design.WebControls { using System.Runtime.Serialization.Formatters; using System; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design; using System.Diagnostics; using System.Drawing.Design; using System.Web.UI.WebControls; ////// /// [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand, Flags=System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode)] public class DataGridColumnCollectionEditor : UITypeEditor { ////// The editor for column collections. /// ////// /// public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value) { IDesignerHost designerHost = (IDesignerHost)context.GetService(typeof(IDesignerHost)); Debug.Assert(designerHost != null, "Did not get DesignerHost service."); Debug.Assert(context.Instance is DataGrid, "Expected datagrid"); DataGrid dataGrid = (DataGrid)context.Instance; BaseDataListDesigner designer = (BaseDataListDesigner)designerHost.GetDesigner(dataGrid); Debug.Assert(designer != null, "Did not get designer for component"); designer.InvokePropertyBuilder(DataGridComponentEditor.IDX_COLUMNS); return value; } ////// Edits the value specified. /// ////// /// public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context) { return UITypeEditorEditStyle.Modal; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved./// Gets the edit style. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlDataSource.cs
- WebResourceUtil.cs
- ObjectQueryState.cs
- SoapIncludeAttribute.cs
- OptimisticConcurrencyException.cs
- XamlReader.cs
- List.cs
- XmlSchemaChoice.cs
- RegisteredExpandoAttribute.cs
- MdiWindowListStrip.cs
- HelpEvent.cs
- Wildcard.cs
- SqlAggregateChecker.cs
- ComPersistableTypeElementCollection.cs
- DataGridLengthConverter.cs
- PropertyNames.cs
- ConnectionStringEditor.cs
- CodeTypeDelegate.cs
- ZoneMembershipCondition.cs
- ResolvedKeyFrameEntry.cs
- ReadOnlyDictionary.cs
- ReadOnlyDataSource.cs
- XamlFxTrace.cs
- LinearKeyFrames.cs
- ButtonColumn.cs
- RectangleGeometry.cs
- CodePropertyReferenceExpression.cs
- BuildProvider.cs
- BindingMemberInfo.cs
- DbExpressionVisitor_TResultType.cs
- DirectionalLight.cs
- Parallel.cs
- Directory.cs
- KeyTime.cs
- LineServicesRun.cs
- PathFigure.cs
- ConfigurationManagerHelper.cs
- EntitySetBase.cs
- TableLayout.cs
- XmlEncodedRawTextWriter.cs
- EntityDataSourceEntitySetNameItem.cs
- ContentValidator.cs
- ConnectionStringSettingsCollection.cs
- RequestResizeEvent.cs
- HtmlInputReset.cs
- Effect.cs
- BaseComponentEditor.cs
- DataRowCollection.cs
- DbDataReader.cs
- CollectionViewGroupRoot.cs
- BindingCollection.cs
- SimpleRecyclingCache.cs
- X509ThumbprintKeyIdentifierClause.cs
- SignatureGenerator.cs
- ListSortDescriptionCollection.cs
- SocketException.cs
- ContentElementAutomationPeer.cs
- EditingMode.cs
- HttpModuleCollection.cs
- MetadataArtifactLoaderComposite.cs
- SignedPkcs7.cs
- ReachDocumentReferenceCollectionSerializer.cs
- ProfilePropertyMetadata.cs
- WorkflowExecutor.cs
- RetrieveVirtualItemEventArgs.cs
- BaseTemplateParser.cs
- SignalGate.cs
- Graphics.cs
- ApplicationDirectory.cs
- IndicCharClassifier.cs
- IsolatedStorageFile.cs
- AvtEvent.cs
- DataSourceControl.cs
- ValueExpressions.cs
- DataControlFieldHeaderCell.cs
- NetworkInterface.cs
- RtfToXamlReader.cs
- DBCSCodePageEncoding.cs
- TreeNodeStyleCollection.cs
- WindowsMenu.cs
- CookielessData.cs
- BinaryMessageFormatter.cs
- InputMethodStateChangeEventArgs.cs
- SchemaObjectWriter.cs
- selecteditemcollection.cs
- Matrix3DConverter.cs
- JsonQNameDataContract.cs
- SkewTransform.cs
- ToolStripComboBox.cs
- StandardToolWindows.cs
- SchemaNamespaceManager.cs
- LogExtent.cs
- SqlSelectClauseBuilder.cs
- SecurityDescriptor.cs
- HTTP_SERVICE_CONFIG_URLACL_PARAM.cs
- DataGridViewCellStyleBuilderDialog.cs
- SqlDataSourceCommandEventArgs.cs
- ContractMethodInfo.cs
- Point3DCollection.cs
- NegotiateStream.cs