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
- PolyLineSegment.cs
- GetPageNumberCompletedEventArgs.cs
- NoResizeSelectionBorderGlyph.cs
- WebServiceBindingAttribute.cs
- LinearKeyFrames.cs
- Debug.cs
- ArgumentDirectionHelper.cs
- SubMenuStyleCollection.cs
- RulePatternOps.cs
- TableHeaderCell.cs
- SrgsDocumentParser.cs
- DataViewManager.cs
- MetadataFile.cs
- SQLString.cs
- GenericParameterDataContract.cs
- CaseCqlBlock.cs
- ServerValidateEventArgs.cs
- QuotaExceededException.cs
- SQLChars.cs
- InputScopeAttribute.cs
- AutoCompleteStringCollection.cs
- ParameterRetriever.cs
- HierarchicalDataBoundControlAdapter.cs
- Win32SafeHandles.cs
- nulltextnavigator.cs
- DataServicePagingProviderWrapper.cs
- TraceSection.cs
- NamespaceInfo.cs
- CreateUserWizardStep.cs
- XmlWrappingReader.cs
- EdgeProfileValidation.cs
- FunctionUpdateCommand.cs
- WebAdminConfigurationHelper.cs
- ResolveDuplexAsyncResult.cs
- XmlSchemaSet.cs
- PartialList.cs
- TextBoxBase.cs
- PrintDialog.cs
- TemplateInstanceAttribute.cs
- NavigateEvent.cs
- XmlSerializerNamespaces.cs
- FixedDocumentSequencePaginator.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- AppDomainEvidenceFactory.cs
- ObjectNotFoundException.cs
- UnauthorizedAccessException.cs
- XPathNavigatorReader.cs
- UTF7Encoding.cs
- ObsoleteAttribute.cs
- PerspectiveCamera.cs
- GlyphRunDrawing.cs
- EntitySetRetriever.cs
- TypeReference.cs
- DataGridItem.cs
- WebPartVerbCollection.cs
- XDRSchema.cs
- PathSegment.cs
- Point3DValueSerializer.cs
- RecognizedPhrase.cs
- DataGridHyperlinkColumn.cs
- BindingContext.cs
- Lease.cs
- TableChangeProcessor.cs
- TreeWalkHelper.cs
- GlyphTypeface.cs
- XmlDataSource.cs
- Wrapper.cs
- RequestNavigateEventArgs.cs
- StringStorage.cs
- Vars.cs
- DbConnectionPoolGroupProviderInfo.cs
- SafeNativeMethods.cs
- WebPartHeaderCloseVerb.cs
- ResourceContainer.cs
- BindingExpressionUncommonField.cs
- LiteralDesigner.cs
- ReceiveSecurityHeaderElementManager.cs
- SqlDataSourceFilteringEventArgs.cs
- MLangCodePageEncoding.cs
- RichTextBox.cs
- ReturnEventArgs.cs
- Soap.cs
- ScalarType.cs
- DataRelationPropertyDescriptor.cs
- QilLiteral.cs
- DynamicActionMessageFilter.cs
- DockingAttribute.cs
- WebPartMinimizeVerb.cs
- ChineseLunisolarCalendar.cs
- PlainXmlWriter.cs
- _FtpControlStream.cs
- ClientConfigurationHost.cs
- BlurBitmapEffect.cs
- ReachDocumentSequenceSerializer.cs
- X509Certificate2Collection.cs
- Schedule.cs
- Memoizer.cs
- RequestQueue.cs
- CodeAttributeArgument.cs
- SatelliteContractVersionAttribute.cs