Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / Data / System / Data / DataViewSetting.cs / 1 / DataViewSetting.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //[....] //----------------------------------------------------------------------------- namespace System.Data { using System; using System.ComponentModel; [ TypeConverter((typeof(ExpandableObjectConverter))), ] #if WINFSInternalOnly internal #else public #endif 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))), ] #if WINFSInternalOnly internal #else public #endif 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
- Condition.cs
- DetailsView.cs
- DecoderExceptionFallback.cs
- ReadContentAsBinaryHelper.cs
- UriSchemeKeyedCollection.cs
- MiniLockedBorderGlyph.cs
- ScriptingProfileServiceSection.cs
- CorrelationRequestContext.cs
- Point3DKeyFrameCollection.cs
- MobileUserControl.cs
- ValueTypeFixupInfo.cs
- CodeCompileUnit.cs
- QuaternionAnimationBase.cs
- IsolatedStorageException.cs
- AppDomainFactory.cs
- IssuanceLicense.cs
- XamlPointCollectionSerializer.cs
- BatchParser.cs
- EntityKey.cs
- CodeLinePragma.cs
- SmiEventStream.cs
- ProcessModuleCollection.cs
- GenericsInstances.cs
- RegexCompilationInfo.cs
- IgnoreFileBuildProvider.cs
- ExpressionBinding.cs
- DataGridTablesFactory.cs
- TimeZone.cs
- DecoderFallback.cs
- _NetworkingPerfCounters.cs
- ProcessHostFactoryHelper.cs
- WebProxyScriptElement.cs
- _UncName.cs
- WorkflowDesigner.cs
- TableLayoutPanelResizeGlyph.cs
- XMLSyntaxException.cs
- SqlDataSourceRefreshSchemaForm.cs
- NullableDecimalMinMaxAggregationOperator.cs
- Splitter.cs
- ClientBuildManagerCallback.cs
- SmtpNegotiateAuthenticationModule.cs
- PropertyCondition.cs
- XmlCountingReader.cs
- wgx_commands.cs
- SchemeSettingElementCollection.cs
- altserialization.cs
- Imaging.cs
- DemultiplexingClientMessageFormatter.cs
- ConnectionStringsExpressionBuilder.cs
- DescendentsWalker.cs
- XamlSerializerUtil.cs
- SourceFileInfo.cs
- DayRenderEvent.cs
- SynchronizedKeyedCollection.cs
- AspNetHostingPermission.cs
- PropertyGridEditorPart.cs
- DataRecordInfo.cs
- ExtensionSimplifierMarkupObject.cs
- DetailsViewDeletedEventArgs.cs
- DefaultDiscoveryServiceExtension.cs
- DirectionalLight.cs
- DataList.cs
- SqlFacetAttribute.cs
- DetailsViewInsertedEventArgs.cs
- FixedSOMTableRow.cs
- XamlFigureLengthSerializer.cs
- UpdatePanelControlTrigger.cs
- XmlUtil.cs
- RawAppCommandInputReport.cs
- ExtenderHelpers.cs
- XmlAttributeProperties.cs
- IERequestCache.cs
- TextOutput.cs
- GACIdentityPermission.cs
- TreeNodeSelectionProcessor.cs
- SmiTypedGetterSetter.cs
- BitmapEffectGroup.cs
- BitmapEffectGeneralTransform.cs
- QilInvokeLateBound.cs
- ProjectedWrapper.cs
- Classification.cs
- ColumnWidthChangingEvent.cs
- DynamicILGenerator.cs
- WebPartMovingEventArgs.cs
- SafeNativeMethodsOther.cs
- BooleanFacetDescriptionElement.cs
- JumpItem.cs
- SecurityElement.cs
- SqlCacheDependencyDatabaseCollection.cs
- HandleValueEditor.cs
- ScriptingRoleServiceSection.cs
- DelayedRegex.cs
- DbMetaDataColumnNames.cs
- DataServiceConfiguration.cs
- RuleSettingsCollection.cs
- XsltInput.cs
- FieldCollectionEditor.cs
- SHA384Managed.cs
- ExceptionList.cs
- DataGridViewToolTip.cs