Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ListenerConfig.cs
- ExceptionValidationRule.cs
- IssuedSecurityTokenProvider.cs
- PinnedBufferMemoryStream.cs
- HttpResponseHeader.cs
- StructuralCache.cs
- ListViewCancelEventArgs.cs
- PropertyFilter.cs
- ContextMenuStrip.cs
- AssociationSet.cs
- UrlMappingsSection.cs
- CompositeDataBoundControl.cs
- DetailsViewInsertEventArgs.cs
- SiteMapPathDesigner.cs
- WindowsContainer.cs
- ControlBuilderAttribute.cs
- ListCollectionView.cs
- DetailsViewModeEventArgs.cs
- PropertyItem.cs
- RtfToken.cs
- _AutoWebProxyScriptEngine.cs
- BevelBitmapEffect.cs
- AppDomainProtocolHandler.cs
- OracleDataAdapter.cs
- ConsumerConnectionPointCollection.cs
- XamlContextStack.cs
- ContentWrapperAttribute.cs
- messageonlyhwndwrapper.cs
- DrawingServices.cs
- CmsInterop.cs
- ItemCheckedEvent.cs
- OdbcReferenceCollection.cs
- HttpListenerTimeoutManager.cs
- InputScopeAttribute.cs
- CodeSnippetCompileUnit.cs
- ColumnCollection.cs
- TableTextElementCollectionInternal.cs
- BamlLocalizer.cs
- DataControlImageButton.cs
- DataGridViewElement.cs
- TriggerActionCollection.cs
- CorrelationService.cs
- TableLayoutStyle.cs
- SiteOfOriginPart.cs
- XmlSchemaDatatype.cs
- ComboBox.cs
- MainMenu.cs
- TextEditorParagraphs.cs
- SuppressMergeCheckAttribute.cs
- StoreContentChangedEventArgs.cs
- ObjectTag.cs
- InternalPermissions.cs
- DataGridViewCellLinkedList.cs
- GetWinFXPath.cs
- DataGridViewControlCollection.cs
- Label.cs
- AppDomainAttributes.cs
- NumberFunctions.cs
- SmtpNegotiateAuthenticationModule.cs
- IpcClientChannel.cs
- MessageContractImporter.cs
- XmlDataImplementation.cs
- WindowsAuthenticationEventArgs.cs
- BindableTemplateBuilder.cs
- XpsInterleavingPolicy.cs
- WsatProxy.cs
- DataContractJsonSerializer.cs
- ConstructorExpr.cs
- _SingleItemRequestCache.cs
- ScopelessEnumAttribute.cs
- EmbeddedMailObject.cs
- WebPartsPersonalizationAuthorization.cs
- SqlMethodCallConverter.cs
- ListViewItemSelectionChangedEvent.cs
- Point3D.cs
- Win32NamedPipes.cs
- Token.cs
- Vector3dCollection.cs
- DefaultHttpHandler.cs
- XmlSchemaAppInfo.cs
- ControlHelper.cs
- BasicExpressionVisitor.cs
- BooleanExpr.cs
- WmlTextBoxAdapter.cs
- TextureBrush.cs
- TypeResolvingOptionsAttribute.cs
- PasswordRecoveryAutoFormat.cs
- UTF7Encoding.cs
- RealProxy.cs
- BufferedGraphics.cs
- PeerDefaultCustomResolverClient.cs
- RtfToXamlLexer.cs
- DoubleStorage.cs
- Choices.cs
- JsonSerializer.cs
- DBConcurrencyException.cs
- FixedPageAutomationPeer.cs
- __TransparentProxy.cs
- EditingCoordinator.cs
- RecordManager.cs