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
- Int64.cs
- DynamicRenderer.cs
- XmlDictionaryWriter.cs
- ObjectDataSourceStatusEventArgs.cs
- CacheAxisQuery.cs
- OleDbCommand.cs
- RecommendedAsConfigurableAttribute.cs
- QilExpression.cs
- Metadata.cs
- TraceRecord.cs
- QueryTask.cs
- ToolStripPanelSelectionBehavior.cs
- SqlLiftIndependentRowExpressions.cs
- RelationshipSet.cs
- dataprotectionpermission.cs
- CFStream.cs
- UIElement3D.cs
- DataGridViewEditingControlShowingEventArgs.cs
- OleCmdHelper.cs
- FlowLayoutPanel.cs
- baseshape.cs
- CompModSwitches.cs
- MenuCommandsChangedEventArgs.cs
- CallSiteBinder.cs
- Group.cs
- EmptyQuery.cs
- TraceListeners.cs
- RestHandlerFactory.cs
- DocumentCollection.cs
- DBSqlParserTableCollection.cs
- UniqueEventHelper.cs
- RegisteredScript.cs
- RegexParser.cs
- ListViewItem.cs
- HotSpot.cs
- SpoolingTaskBase.cs
- ButtonColumn.cs
- ClientRequest.cs
- ToolBarPanel.cs
- SqlDependencyUtils.cs
- PageCodeDomTreeGenerator.cs
- MDIClient.cs
- BamlLocalizableResource.cs
- Opcode.cs
- PassportAuthentication.cs
- NavigateEvent.cs
- AdornerHitTestResult.cs
- ValidationResult.cs
- BinaryEditor.cs
- PropertyTabAttribute.cs
- UriTemplateDispatchFormatter.cs
- IssuanceLicense.cs
- DataGridViewRowEventArgs.cs
- IPipelineRuntime.cs
- TextBoxBase.cs
- ParserExtension.cs
- BehaviorEditorPart.cs
- TraceHandlerErrorFormatter.cs
- SingletonConnectionReader.cs
- WebCategoryAttribute.cs
- WindowInteropHelper.cs
- ExpressionLexer.cs
- ToolStripRendererSwitcher.cs
- _DomainName.cs
- StringSorter.cs
- AccessDataSourceView.cs
- WebPartAuthorizationEventArgs.cs
- EntityType.cs
- Privilege.cs
- DropDownButton.cs
- SurrogateChar.cs
- GlyphTypeface.cs
- IgnoreSectionHandler.cs
- WindowsSysHeader.cs
- HttpInputStream.cs
- WebPartMinimizeVerb.cs
- ObjectToModelValueConverter.cs
- AppModelKnownContentFactory.cs
- AddInIpcChannel.cs
- VerifyHashRequest.cs
- PlatformNotSupportedException.cs
- XmlSchemaImport.cs
- PointLightBase.cs
- DataGridViewCellValidatingEventArgs.cs
- ProfilePropertyMetadata.cs
- PagerSettings.cs
- IsolatedStorageFileStream.cs
- ElementProxy.cs
- UrlMappingsModule.cs
- SourceInterpreter.cs
- Error.cs
- CheckBox.cs
- CookieProtection.cs
- ScrollViewer.cs
- WebPartPersonalization.cs
- ListBoxChrome.cs
- RegexStringValidatorAttribute.cs
- WindowsIPAddress.cs
- WinEventWrap.cs
- WorkflowApplicationUnhandledExceptionEventArgs.cs