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
- SizeKeyFrameCollection.cs
- WindowsImpersonationContext.cs
- XmlCodeExporter.cs
- EmbeddedMailObjectsCollection.cs
- WinInetCache.cs
- Rfc2898DeriveBytes.cs
- CodeRegionDirective.cs
- LinearGradientBrush.cs
- Win32SafeHandles.cs
- DirectionalLight.cs
- QilTargetType.cs
- InkCanvasSelectionAdorner.cs
- SqlUnionizer.cs
- PrimitiveSchema.cs
- AnnotationStore.cs
- SafeNativeMethods.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- TimeoutException.cs
- NativeMethods.cs
- httpapplicationstate.cs
- BackStopAuthenticationModule.cs
- DictionaryManager.cs
- BamlBinaryReader.cs
- ToolStripItemClickedEventArgs.cs
- ValueHandle.cs
- TimeSpanMinutesConverter.cs
- SmiTypedGetterSetter.cs
- UnmanagedHandle.cs
- PKCS1MaskGenerationMethod.cs
- MetadataItemCollectionFactory.cs
- IconHelper.cs
- DispatcherHookEventArgs.cs
- ModuleConfigurationInfo.cs
- CqlParserHelpers.cs
- CapabilitiesAssignment.cs
- MultilineStringConverter.cs
- XmlRawWriter.cs
- HostedTcpTransportManager.cs
- Quaternion.cs
- ActivityMarkupSerializer.cs
- DocumentGridPage.cs
- TaskFileService.cs
- _AuthenticationState.cs
- DataObjectFieldAttribute.cs
- WindowInteropHelper.cs
- HttpWriter.cs
- ClickablePoint.cs
- DPAPIProtectedConfigurationProvider.cs
- DescendentsWalker.cs
- ServicePointManagerElement.cs
- XPathEmptyIterator.cs
- SqlStream.cs
- Simplifier.cs
- ListBindableAttribute.cs
- exports.cs
- StylusPointCollection.cs
- DataBoundLiteralControl.cs
- TypeUtils.cs
- OleDbWrapper.cs
- handlecollector.cs
- LayoutInformation.cs
- PackageStore.cs
- InvalidDataException.cs
- ToolStripInSituService.cs
- EntityContainerEmitter.cs
- HtmlLink.cs
- Point3DAnimationUsingKeyFrames.cs
- Expression.cs
- MDIWindowDialog.cs
- GrowingArray.cs
- ObjectAnimationUsingKeyFrames.cs
- HttpPostedFileWrapper.cs
- FakeModelItemImpl.cs
- Rect3D.cs
- StringPropertyBuilder.cs
- Page.cs
- SqlServer2KCompatibilityAnnotation.cs
- AnnotationResourceChangedEventArgs.cs
- XPathScanner.cs
- log.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- FormViewPagerRow.cs
- LabelLiteral.cs
- HwndMouseInputProvider.cs
- PrintPreviewGraphics.cs
- HMACMD5.cs
- InstanceCreationEditor.cs
- DataGridViewControlCollection.cs
- TreeSet.cs
- ExtractorMetadata.cs
- DbTransaction.cs
- EventLog.cs
- DbMetaDataCollectionNames.cs
- DataStreamFromComStream.cs
- XmlEncodedRawTextWriter.cs
- LoginUtil.cs
- SqlDataSourceSelectingEventArgs.cs
- RegexCharClass.cs
- RuntimeResourceSet.cs
- ReaderContextStackData.cs