Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Data / System / Data / DataViewSetting.cs / 1305376 / DataViewSetting.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //[....] //----------------------------------------------------------------------------- namespace System.Data { using System; using System.ComponentModel; [ TypeConverter((typeof(ExpandableObjectConverter))), ] public class DataViewSetting { DataViewManager dataViewManager; DataTable table; string sort = ""; string rowFilter = ""; DataViewRowState rowStateFilter = DataViewRowState.CurrentRows; bool applyDefaultSort = false; internal DataViewSetting() {} internal DataViewSetting(string sort, string rowFilter, DataViewRowState rowStateFilter) { this.sort = sort; this.rowFilter = rowFilter; this.rowStateFilter = rowStateFilter; } public bool ApplyDefaultSort { get { return applyDefaultSort; } set { if (applyDefaultSort != value) { applyDefaultSort = value; } } } [Browsable(false)] public DataViewManager DataViewManager { get { return dataViewManager; } } internal void SetDataViewManager(DataViewManager dataViewManager) { if(this.dataViewManager != dataViewManager) { if(this.dataViewManager != null) { // throw exception here; } this.dataViewManager = dataViewManager; } } [Browsable(false)] public DataTable Table { get { return table; } } internal void SetDataTable(DataTable table) { if(this.table != table) { if(this.table != null) { // throw exception here; } this.table = table; } } public string RowFilter { get { return rowFilter; } set { if (value == null) value = ""; if (this.rowFilter != value) { this.rowFilter = value; } } } public DataViewRowState RowStateFilter { get { return rowStateFilter; } set { if (this.rowStateFilter != value) { this.rowStateFilter = value; } } } public string Sort { get { return sort; } set { if (value == null) value = ""; if (this.sort != value) { this.sort = value; } } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //[....] //----------------------------------------------------------------------------- namespace System.Data { using System; using System.ComponentModel; [ TypeConverter((typeof(ExpandableObjectConverter))), ] public class DataViewSetting { DataViewManager dataViewManager; DataTable table; string sort = ""; string rowFilter = ""; DataViewRowState rowStateFilter = DataViewRowState.CurrentRows; bool applyDefaultSort = false; internal DataViewSetting() {} internal DataViewSetting(string sort, string rowFilter, DataViewRowState rowStateFilter) { this.sort = sort; this.rowFilter = rowFilter; this.rowStateFilter = rowStateFilter; } public bool ApplyDefaultSort { get { return applyDefaultSort; } set { if (applyDefaultSort != value) { applyDefaultSort = value; } } } [Browsable(false)] public DataViewManager DataViewManager { get { return dataViewManager; } } internal void SetDataViewManager(DataViewManager dataViewManager) { if(this.dataViewManager != dataViewManager) { if(this.dataViewManager != null) { // throw exception here; } this.dataViewManager = dataViewManager; } } [Browsable(false)] public DataTable Table { get { return table; } } internal void SetDataTable(DataTable table) { if(this.table != table) { if(this.table != null) { // throw exception here; } this.table = table; } } public string RowFilter { get { return rowFilter; } set { if (value == null) value = ""; if (this.rowFilter != value) { this.rowFilter = value; } } } public DataViewRowState RowStateFilter { get { return rowStateFilter; } set { if (this.rowStateFilter != value) { this.rowStateFilter = value; } } } public string Sort { get { return sort; } set { if (value == null) value = ""; if (this.sort != value) { this.sort = value; } } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ApplicationGesture.cs
- ComPlusDiagnosticTraceSchemas.cs
- ExecutionEngineException.cs
- CodeCompiler.cs
- SqlRowUpdatedEvent.cs
- ControlBindingsCollection.cs
- BitmapDownload.cs
- DesignTimeDataBinding.cs
- Material.cs
- TiffBitmapEncoder.cs
- SwitchAttribute.cs
- SqlLiftWhereClauses.cs
- AssemblyInfo.cs
- HttpBindingExtension.cs
- ExtensionSimplifierMarkupObject.cs
- XmlSerializerSection.cs
- RenderTargetBitmap.cs
- MenuRendererStandards.cs
- XhtmlBasicFormAdapter.cs
- DictationGrammar.cs
- XmlSchemaSimpleContentRestriction.cs
- DelegatingTypeDescriptionProvider.cs
- HotSpot.cs
- RootBuilder.cs
- Storyboard.cs
- AspNetSynchronizationContext.cs
- ColorTransform.cs
- StylusTip.cs
- backend.cs
- XPathSingletonIterator.cs
- ComplexTypeEmitter.cs
- MenuRendererClassic.cs
- ToolStripOverflowButton.cs
- ClientSideProviderDescription.cs
- FixedSOMSemanticBox.cs
- RestHandler.cs
- HttpClientCredentialType.cs
- OracleParameter.cs
- DockAndAnchorLayout.cs
- AspCompat.cs
- X509CertificateStore.cs
- SelfIssuedAuthRSACryptoProvider.cs
- SqlCacheDependencyDatabaseCollection.cs
- Transform.cs
- EmptyEnumerable.cs
- SmuggledIUnknown.cs
- EditorOptionAttribute.cs
- Classification.cs
- DoubleKeyFrameCollection.cs
- Authorization.cs
- Mapping.cs
- AssociatedControlConverter.cs
- MultiDataTrigger.cs
- XhtmlMobileTextWriter.cs
- GridViewRowCollection.cs
- CallSiteBinder.cs
- GenericTypeParameterBuilder.cs
- MostlySingletonList.cs
- WebPartMenu.cs
- ToolStripContentPanel.cs
- XLinq.cs
- TokenFactoryFactory.cs
- DesignBindingPicker.cs
- XmlAutoDetectWriter.cs
- SettingsProperty.cs
- BypassElementCollection.cs
- ParameterModifier.cs
- BorderGapMaskConverter.cs
- ModuleConfigurationInfo.cs
- BitSet.cs
- SectionInformation.cs
- SystemIcmpV4Statistics.cs
- CacheModeValueSerializer.cs
- GlobalDataBindingHandler.cs
- DashStyles.cs
- GridItemCollection.cs
- DropDownList.cs
- Cell.cs
- TypeInfo.cs
- HotCommands.cs
- CatalogZone.cs
- ResourcesBuildProvider.cs
- ButtonBaseAdapter.cs
- SizeChangedInfo.cs
- TimeSpanValidator.cs
- AttachedPropertyMethodSelector.cs
- BitmapMetadata.cs
- TypedMessageConverter.cs
- ColumnHeader.cs
- MemberNameValidator.cs
- CapabilitiesRule.cs
- StringUtil.cs
- DataListItemCollection.cs
- ProvidePropertyAttribute.cs
- DataBinding.cs
- SerializationUtility.cs
- InstanceNormalEvent.cs
- ManagementExtension.cs
- EntityDataSourceWrapper.cs
- RuntimeHelpers.cs