Code:
/ DotNET / DotNET / 8.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
- WindowsScrollBarBits.cs
- GroupBoxAutomationPeer.cs
- DataTemplateSelector.cs
- MsmqInputChannelListenerBase.cs
- Header.cs
- ButtonFieldBase.cs
- ReverseInheritProperty.cs
- WindowsStartMenu.cs
- RemotingException.cs
- FrameworkElement.cs
- StaticFileHandler.cs
- CodeTypeParameterCollection.cs
- SingleAnimation.cs
- PageContent.cs
- Registry.cs
- TextModifierScope.cs
- AssociatedControlConverter.cs
- DoubleLinkListEnumerator.cs
- StretchValidation.cs
- WebPartRestoreVerb.cs
- EventLogTraceListener.cs
- WebControlParameterProxy.cs
- Deflater.cs
- XmlCharCheckingReader.cs
- ListViewItemEventArgs.cs
- VersionedStreamOwner.cs
- MSHTMLHost.cs
- LogEntrySerializer.cs
- ToolStripItemClickedEventArgs.cs
- ArraySortHelper.cs
- DataGridRow.cs
- CancellationHandler.cs
- RefExpr.cs
- ProviderConnectionPoint.cs
- XmlHierarchicalDataSourceView.cs
- SocketAddress.cs
- BitVector32.cs
- AVElementHelper.cs
- ExceptionCollection.cs
- ExtensionQuery.cs
- DataGridViewSelectedColumnCollection.cs
- BmpBitmapDecoder.cs
- ParentQuery.cs
- NetMsmqSecurityElement.cs
- SpellerError.cs
- FrameworkRichTextComposition.cs
- InstanceDataCollection.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- ObjectSecurity.cs
- PbrsForward.cs
- SHA384.cs
- TextEndOfLine.cs
- StringSource.cs
- TablePattern.cs
- ReferenceService.cs
- PathSegment.cs
- TemplateBindingExtension.cs
- SpnEndpointIdentityExtension.cs
- Repeater.cs
- DataGridViewComboBoxEditingControl.cs
- NotificationContext.cs
- ProfileGroupSettings.cs
- ArgumentOutOfRangeException.cs
- GetFileNameResult.cs
- CheckBoxRenderer.cs
- WorkflowItemsPresenter.cs
- FormsAuthenticationCredentials.cs
- BinaryFormatter.cs
- DefaultTypeArgumentAttribute.cs
- Stack.cs
- DetailsViewPagerRow.cs
- CultureMapper.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- Parser.cs
- NetMsmqSecurityMode.cs
- CodeGen.cs
- HeaderedContentControl.cs
- ThrowHelper.cs
- ColorComboBox.cs
- FullTextState.cs
- MetabaseReader.cs
- Matrix3DValueSerializer.cs
- SimpleRecyclingCache.cs
- SharedTcpTransportManager.cs
- IdnElement.cs
- CodeBinaryOperatorExpression.cs
- shaperfactoryquerycachekey.cs
- ToolboxBitmapAttribute.cs
- SafeNativeMethods.cs
- InputLanguageCollection.cs
- DataRecordObjectView.cs
- ViewBox.cs
- StaticFileHandler.cs
- AnonymousIdentificationModule.cs
- FileUpload.cs
- EntityDataSourceContextDisposingEventArgs.cs
- FontFamily.cs
- ToolStripTextBox.cs
- ToggleProviderWrapper.cs
- ToolStripGrip.cs