Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- XmlSchemaCompilationSettings.cs
- ProgressChangedEventArgs.cs
- WSSecureConversationFeb2005.cs
- Wildcard.cs
- InplaceBitmapMetadataWriter.cs
- PagesChangedEventArgs.cs
- ArrayWithOffset.cs
- X509Utils.cs
- DataGridPageChangedEventArgs.cs
- ErrorWebPart.cs
- DataServiceResponse.cs
- ComplexObject.cs
- TableParagraph.cs
- DBBindings.cs
- XmlReaderSettings.cs
- DesignerGeometryHelper.cs
- XmlSchemaAnnotated.cs
- ThumbAutomationPeer.cs
- DrawingContextDrawingContextWalker.cs
- AutomationIdentifier.cs
- AdCreatedEventArgs.cs
- AssociationProvider.cs
- EditorBrowsableAttribute.cs
- OrderedDictionaryStateHelper.cs
- OSFeature.cs
- XmlRootAttribute.cs
- HttpRequestCacheValidator.cs
- FontFamilyValueSerializer.cs
- ConsoleCancelEventArgs.cs
- codemethodreferenceexpression.cs
- HwndSourceKeyboardInputSite.cs
- BitmapMetadataEnumerator.cs
- Matrix.cs
- UseLicense.cs
- NotCondition.cs
- XmlBinaryReader.cs
- XmlCollation.cs
- brushes.cs
- WebBrowserDesigner.cs
- ValueConversionAttribute.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- MobileUITypeEditor.cs
- ScrollableControl.cs
- ModelPerspective.cs
- AssociatedControlConverter.cs
- EventListener.cs
- FamilyMap.cs
- ElementUtil.cs
- MemoryPressure.cs
- VariableQuery.cs
- SafeProcessHandle.cs
- GeometryCollection.cs
- CultureInfoConverter.cs
- CreateUserWizardStep.cs
- manifestimages.cs
- KeySpline.cs
- SemanticResultKey.cs
- Baml2006SchemaContext.cs
- TemplateBindingExtensionConverter.cs
- BasePropertyDescriptor.cs
- ConditionalAttribute.cs
- BaseDataBoundControl.cs
- HttpWrapper.cs
- BaseProcessor.cs
- EraserBehavior.cs
- AutoScrollHelper.cs
- UnionCqlBlock.cs
- LambdaSerializationException.cs
- OleDbFactory.cs
- Journaling.cs
- Terminate.cs
- PropertyDescriptorCollection.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- PageCodeDomTreeGenerator.cs
- GeneratedContractType.cs
- SqlClientWrapperSmiStreamChars.cs
- IListConverters.cs
- Popup.cs
- CaseDesigner.xaml.cs
- WebBrowserContainer.cs
- SrgsGrammar.cs
- IdleTimeoutMonitor.cs
- ClientOptions.cs
- WebPartAddingEventArgs.cs
- WpfKnownTypeInvoker.cs
- TableRow.cs
- ScrollableControl.cs
- ScriptDescriptor.cs
- UInt16.cs
- OperationFormatUse.cs
- DbModificationCommandTree.cs
- ContextMenuStripGroupCollection.cs
- SqlRecordBuffer.cs
- COAUTHINFO.cs
- EventProxy.cs
- LambdaCompiler.Binary.cs
- DelegatingConfigHost.cs
- RoleGroupCollection.cs
- CellTreeNode.cs
- DataTable.cs