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
- UiaCoreTypesApi.cs
- XmlSchemaSimpleTypeList.cs
- DataSourceNameHandler.cs
- XmlSchemaGroup.cs
- BinaryUtilClasses.cs
- X509Certificate.cs
- CatchDesigner.xaml.cs
- DbFunctionCommandTree.cs
- AuthenticationService.cs
- ToolStripControlHost.cs
- WebPartCancelEventArgs.cs
- DelegatedStream.cs
- PasswordPropertyTextAttribute.cs
- HtmlInputFile.cs
- CollectionChangedEventManager.cs
- HierarchicalDataTemplate.cs
- ScaleTransform.cs
- PropertyManager.cs
- IPHostEntry.cs
- SecurityTokenAuthenticator.cs
- AsyncCompletedEventArgs.cs
- MemberProjectedSlot.cs
- GridViewCommandEventArgs.cs
- XmlRawWriter.cs
- SqlDataSourceCache.cs
- GridViewItemAutomationPeer.cs
- Journaling.cs
- SchemaNotation.cs
- CallbackHandler.cs
- LayoutEngine.cs
- ColumnWidthChangedEvent.cs
- AddInProcess.cs
- PropertyPathWorker.cs
- RegularExpressionValidator.cs
- SizeKeyFrameCollection.cs
- ModulesEntry.cs
- FixedDSBuilder.cs
- HyperlinkAutomationPeer.cs
- HtmlDocument.cs
- NavigatingCancelEventArgs.cs
- ZipPackage.cs
- ISO2022Encoding.cs
- DispatcherExceptionFilterEventArgs.cs
- InternalDuplexBindingElement.cs
- FontNamesConverter.cs
- ToolStripAdornerWindowService.cs
- EmissiveMaterial.cs
- initElementDictionary.cs
- newinstructionaction.cs
- BaseDataBoundControl.cs
- PolicyFactory.cs
- RoleManagerSection.cs
- ByteAnimationBase.cs
- Rule.cs
- Relationship.cs
- Error.cs
- HashAlgorithm.cs
- CollectionChangedEventManager.cs
- EntityDataSourceChangedEventArgs.cs
- InternalTypeHelper.cs
- CommonGetThemePartSize.cs
- TextParagraphProperties.cs
- ByteRangeDownloader.cs
- _ConnectStream.cs
- StatusBarDrawItemEvent.cs
- TextHidden.cs
- Composition.cs
- NumberFormatter.cs
- DbConnectionPool.cs
- KnownTypeHelper.cs
- LoginCancelEventArgs.cs
- DataStreams.cs
- FontInfo.cs
- PixelFormats.cs
- PrimitiveSchema.cs
- ExpressionWriter.cs
- SafeNativeMethodsCLR.cs
- QilStrConcat.cs
- FixUpCollection.cs
- SharedDp.cs
- TreeNodeConverter.cs
- IdentityHolder.cs
- TreeView.cs
- UnsafeNativeMethods.cs
- RegexNode.cs
- TemplateAction.cs
- DispatcherSynchronizationContext.cs
- BulletChrome.cs
- ComponentCollection.cs
- PageContentAsyncResult.cs
- GlobalItem.cs
- ServiceChannelManager.cs
- HtmlEncodedRawTextWriter.cs
- DesignerActionMethodItem.cs
- Claim.cs
- StatusBarPanelClickEvent.cs
- LayoutEngine.cs
- DbFunctionCommandTree.cs
- WorkflowApplicationCompletedEventArgs.cs
- RegexInterpreter.cs