Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- Maps.cs
- ForeignConstraint.cs
- JsonByteArrayDataContract.cs
- HttpListenerPrefixCollection.cs
- ItemsPanelTemplate.cs
- PopupControlService.cs
- DataServiceExpressionVisitor.cs
- PropertyGeneratedEventArgs.cs
- ParserHooks.cs
- DataPointer.cs
- EncryptedType.cs
- XmlBufferedByteStreamReader.cs
- SystemResources.cs
- ApplicationServicesHostFactory.cs
- Rss20ItemFormatter.cs
- AuthStoreRoleProvider.cs
- TextTreeInsertElementUndoUnit.cs
- ArraySubsetEnumerator.cs
- MenuItemCollection.cs
- CodeChecksumPragma.cs
- ConfigurationProviderException.cs
- ScriptMethodAttribute.cs
- BidOverLoads.cs
- UnsafeNativeMethods.cs
- PagerSettings.cs
- IISUnsafeMethods.cs
- SqlIdentifier.cs
- ProviderException.cs
- OutputBuffer.cs
- SwitchAttribute.cs
- RowToFieldTransformer.cs
- HtmlWindow.cs
- FileChangesMonitor.cs
- LabelEditEvent.cs
- UpdateProgress.cs
- MimeTypePropertyAttribute.cs
- WizardPanelChangingEventArgs.cs
- MetadataCacheItem.cs
- TextTreeUndo.cs
- MouseGestureConverter.cs
- SqlDataSourceEnumerator.cs
- AppDomainFactory.cs
- Timer.cs
- AttributeProviderAttribute.cs
- DataGridBoolColumn.cs
- SessionStateItemCollection.cs
- Parser.cs
- IncrementalCompileAnalyzer.cs
- ComponentResourceKey.cs
- ApplicationProxyInternal.cs
- ScalarOps.cs
- returneventsaver.cs
- coordinatorscratchpad.cs
- ListBox.cs
- PrintPreviewDialog.cs
- BitmapSource.cs
- errorpatternmatcher.cs
- NavigationProperty.cs
- SingleAnimationUsingKeyFrames.cs
- ZipIOLocalFileHeader.cs
- DocumentApplication.cs
- Assert.cs
- SpnEndpointIdentityExtension.cs
- ToolStripOverflow.cs
- DetailsViewDeleteEventArgs.cs
- ColumnTypeConverter.cs
- EncoderParameters.cs
- MD5Cng.cs
- SecUtil.cs
- ConfigXmlComment.cs
- Automation.cs
- TemplateLookupAction.cs
- NativeActivity.cs
- CompiledQueryCacheEntry.cs
- grammarelement.cs
- DiagnosticEventProvider.cs
- TextTreeTextElementNode.cs
- MatrixAnimationUsingPath.cs
- PolicyUtility.cs
- RadioButtonStandardAdapter.cs
- UnsafeNativeMethods.cs
- BufferedReadStream.cs
- SystemIPGlobalStatistics.cs
- SuppressMessageAttribute.cs
- XmlConvert.cs
- ArcSegment.cs
- ScrollableControl.cs
- XsltCompileContext.cs
- ZoneLinkButton.cs
- DropShadowEffect.cs
- DispatcherFrame.cs
- DataSourceUtil.cs
- QilLiteral.cs
- GenericPrincipal.cs
- ValidatorCollection.cs
- DbDataReader.cs
- ReadOnlyTernaryTree.cs
- InstanceNotReadyException.cs
- DoubleStorage.cs
- VariableQuery.cs