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
- ShapingEngine.cs
- DataGridViewEditingControlShowingEventArgs.cs
- WinInetCache.cs
- TextTreeTextBlock.cs
- Timer.cs
- Nullable.cs
- XmlSchemaSimpleContentRestriction.cs
- SetMemberBinder.cs
- _CookieModule.cs
- EventLogSession.cs
- IIS7UserPrincipal.cs
- TableStyle.cs
- SqlFacetAttribute.cs
- DocumentScope.cs
- XmlDocumentType.cs
- BamlLocalizer.cs
- NetNamedPipeBindingCollectionElement.cs
- TypeSource.cs
- TextTrailingWordEllipsis.cs
- OdbcConnection.cs
- DeclarativeCatalogPart.cs
- DataGridViewComboBoxEditingControl.cs
- CodeGotoStatement.cs
- ControlsConfig.cs
- DbException.cs
- StyleSheet.cs
- SynchronizingStream.cs
- Polygon.cs
- CurrencyManager.cs
- DesignConnection.cs
- AjaxFrameworkAssemblyAttribute.cs
- ImplicitInputBrush.cs
- MailMessageEventArgs.cs
- BitmapEffectDrawingContextState.cs
- ToolStripContextMenu.cs
- DataGridViewCellConverter.cs
- OneOfElement.cs
- MemberListBinding.cs
- ThrowHelper.cs
- SecurityElement.cs
- EnumMember.cs
- infer.cs
- SchemaElementLookUpTableEnumerator.cs
- XPathScanner.cs
- CompilerGeneratedAttribute.cs
- CompilerTypeWithParams.cs
- LoadedOrUnloadedOperation.cs
- CodeLinePragma.cs
- TraceHandlerErrorFormatter.cs
- CodeValidator.cs
- ConfigViewGenerator.cs
- ClientUtils.cs
- CacheOutputQuery.cs
- ImagingCache.cs
- StylusSystemGestureEventArgs.cs
- Compress.cs
- BitStack.cs
- ListControl.cs
- CryptoApi.cs
- WebServiceReceiveDesigner.cs
- RemoveStoryboard.cs
- SafeSecurityHelper.cs
- TextSimpleMarkerProperties.cs
- DelegatingChannelListener.cs
- LeaseManager.cs
- ChangeToolStripParentVerb.cs
- ObjectAssociationEndMapping.cs
- Pair.cs
- DataGridTextColumn.cs
- FilePrompt.cs
- VisualTreeHelper.cs
- RSAPKCS1SignatureFormatter.cs
- NodeLabelEditEvent.cs
- Model3DGroup.cs
- PasswordPropertyTextAttribute.cs
- DateTimeValueSerializer.cs
- RegistryExceptionHelper.cs
- SqlParameterCollection.cs
- CancellationHandlerDesigner.cs
- TypeToStringValueConverter.cs
- ReaderWriterLock.cs
- AssemblyCollection.cs
- ObjectViewListener.cs
- SelectionProviderWrapper.cs
- Int32KeyFrameCollection.cs
- Quaternion.cs
- RemoveStoryboard.cs
- SizeConverter.cs
- SspiSafeHandles.cs
- NestedContainer.cs
- CommandID.cs
- localization.cs
- TextSimpleMarkerProperties.cs
- WebPartUserCapability.cs
- XPathNodeIterator.cs
- TextWriterTraceListener.cs
- SqlUtil.cs
- EventLogInformation.cs
- XmlMtomWriter.cs
- EntityClientCacheEntry.cs