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
- XmlValidatingReader.cs
- Panel.cs
- ManipulationLogic.cs
- SecureConversationDriver.cs
- DataGridViewCellMouseEventArgs.cs
- DataGridViewCell.cs
- Section.cs
- XmlElementList.cs
- Rectangle.cs
- TdsParserSessionPool.cs
- PointLightBase.cs
- ScriptReference.cs
- WsrmFault.cs
- EndpointBehaviorElementCollection.cs
- CodePageUtils.cs
- SqlCaseSimplifier.cs
- HashAlgorithm.cs
- StructuredProperty.cs
- TrustSection.cs
- ResourceAssociationTypeEnd.cs
- SafeSecurityHandles.cs
- CqlLexer.cs
- ScriptResourceMapping.cs
- DefaultBinder.cs
- ConfigurationPropertyCollection.cs
- DrawingServices.cs
- WebPartExportVerb.cs
- DatePickerTextBox.cs
- PageTheme.cs
- SecureStringHasher.cs
- StorageRoot.cs
- BitmapMetadataEnumerator.cs
- EventMappingSettingsCollection.cs
- ThaiBuddhistCalendar.cs
- OleCmdHelper.cs
- SecureStringHasher.cs
- LinkUtilities.cs
- XmlnsPrefixAttribute.cs
- ErrorHandler.cs
- DataViewManagerListItemTypeDescriptor.cs
- InitiatorSessionSymmetricMessageSecurityProtocol.cs
- TextBoxBaseDesigner.cs
- PanelStyle.cs
- DataGridViewRowPostPaintEventArgs.cs
- WebContext.cs
- UpdateRecord.cs
- HttpHandlerActionCollection.cs
- _NestedSingleAsyncResult.cs
- RowUpdatingEventArgs.cs
- HeaderElement.cs
- AnnotationHighlightLayer.cs
- TypeGeneratedEventArgs.cs
- DataGridViewBindingCompleteEventArgs.cs
- CompareInfo.cs
- SecurityTokenContainer.cs
- Activity.cs
- BuildManagerHost.cs
- ExtendedProtectionPolicyElement.cs
- BindableTemplateBuilder.cs
- IgnoreFlushAndCloseStream.cs
- FileDialog_Vista.cs
- Point4D.cs
- TargetFrameworkUtil.cs
- StorageRoot.cs
- HtmlTitle.cs
- Pkcs9Attribute.cs
- RepeaterCommandEventArgs.cs
- RoleManagerSection.cs
- DetailsViewInsertEventArgs.cs
- UnicodeEncoding.cs
- RequestCachingSection.cs
- InkSerializer.cs
- GridViewRow.cs
- NamedPipeWorkerProcess.cs
- ConfigurationValidatorAttribute.cs
- SignatureDescription.cs
- DocumentOutline.cs
- DPCustomTypeDescriptor.cs
- TemplatePartAttribute.cs
- PathFigure.cs
- AppDomainProtocolHandler.cs
- SendActivity.cs
- AdRotatorDesigner.cs
- formatter.cs
- DefaultMemberAttribute.cs
- BuiltInPermissionSets.cs
- LogConverter.cs
- LifetimeServices.cs
- ShaderEffect.cs
- Converter.cs
- HtmlTableCellCollection.cs
- Stack.cs
- PartitionResolver.cs
- HideDisabledControlAdapter.cs
- SevenBitStream.cs
- ItemContainerGenerator.cs
- KeyPullup.cs
- RequestCacheEntry.cs
- DivideByZeroException.cs
- TypeUtil.cs