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
- NativeMethods.cs
- HotSpot.cs
- WindowsListBox.cs
- uribuilder.cs
- XmlTextReaderImplHelpers.cs
- TailPinnedEventArgs.cs
- ObjectSelectorEditor.cs
- NavigationProperty.cs
- MachineKeyValidationConverter.cs
- TracePayload.cs
- DataObjectAttribute.cs
- TextClipboardData.cs
- CallbackValidatorAttribute.cs
- SoapIncludeAttribute.cs
- JsonServiceDocumentSerializer.cs
- MSAAWinEventWrap.cs
- ClientTarget.cs
- NotificationContext.cs
- UdpDiscoveryMessageFilter.cs
- HtmlEmptyTagControlBuilder.cs
- TransformedBitmap.cs
- GB18030Encoding.cs
- GeneralTransform3D.cs
- DiscoveryService.cs
- CmsInterop.cs
- SequenceFullException.cs
- mediaeventshelper.cs
- SQLInt16.cs
- LayoutEditorPart.cs
- SingleAnimation.cs
- XamlPoint3DCollectionSerializer.cs
- VisualTarget.cs
- PointAnimation.cs
- SecurityElement.cs
- PagesSection.cs
- FormParameter.cs
- DockAndAnchorLayout.cs
- DemultiplexingDispatchMessageFormatter.cs
- ConvertersCollection.cs
- COAUTHINFO.cs
- SineEase.cs
- ActivityBuilderHelper.cs
- GridEntryCollection.cs
- SchemaDeclBase.cs
- ToolStripItemImageRenderEventArgs.cs
- AnimationClock.cs
- BooleanAnimationBase.cs
- WorkflowMessageEventHandler.cs
- TextDecoration.cs
- TreeNode.cs
- CollectionDataContract.cs
- JpegBitmapEncoder.cs
- SafeEventLogWriteHandle.cs
- ImageCodecInfo.cs
- PageStatePersister.cs
- StringAnimationUsingKeyFrames.cs
- HtmlInputButton.cs
- ISAPIWorkerRequest.cs
- BigInt.cs
- PublisherIdentityPermission.cs
- ConfigurationStrings.cs
- TextEditorDragDrop.cs
- _ConnectOverlappedAsyncResult.cs
- CollectionContainer.cs
- WebBrowserEvent.cs
- DispatcherEventArgs.cs
- XmlQueryTypeFactory.cs
- ComplexTypeEmitter.cs
- SchemaImporter.cs
- CookielessHelper.cs
- WebPartConnectionsCancelEventArgs.cs
- DataBindingExpressionBuilder.cs
- CollectionDataContract.cs
- PointAnimationUsingKeyFrames.cs
- EntityStoreSchemaFilterEntry.cs
- WebPartConnectionsConfigureVerb.cs
- DataGridViewRow.cs
- JsonReaderDelegator.cs
- Int32KeyFrameCollection.cs
- WindowsSecurityToken.cs
- C14NUtil.cs
- SecurityPolicySection.cs
- CannotUnloadAppDomainException.cs
- Renderer.cs
- ModifierKeysConverter.cs
- CertificateElement.cs
- BamlReader.cs
- UnsafeNativeMethods.cs
- SectionInformation.cs
- ClientConvert.cs
- BulletedList.cs
- XPathQilFactory.cs
- DictionaryEditChange.cs
- WindowsContainer.cs
- ToolStripDropDownButton.cs
- ErrorCodes.cs
- HttpConfigurationContext.cs
- Terminate.cs
- ZipIOExtraFieldPaddingElement.cs
- CustomWebEventKey.cs