Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Data / System / Data / DataViewSetting.cs / 1305376 / DataViewSetting.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //[....] //----------------------------------------------------------------------------- namespace System.Data { using System; using System.ComponentModel; [ TypeConverter((typeof(ExpandableObjectConverter))), ] public 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
- ParsedAttributeCollection.cs
- WebException.cs
- ServiceHttpHandlerFactory.cs
- ICollection.cs
- RegistrationServices.cs
- EntityDataSourceContextCreatingEventArgs.cs
- FillErrorEventArgs.cs
- DesignColumn.cs
- CodeStatement.cs
- DynamicValidator.cs
- EditingMode.cs
- ObjRef.cs
- DPAPIProtectedConfigurationProvider.cs
- FunctionImportElement.cs
- XmlAutoDetectWriter.cs
- ComEventsMethod.cs
- IndentTextWriter.cs
- NodeInfo.cs
- StyleXamlParser.cs
- HashHelper.cs
- DurableInstanceContextProvider.cs
- StaticResourceExtension.cs
- DbDataReader.cs
- SqlPersonalizationProvider.cs
- RuleSettings.cs
- CategoryList.cs
- Run.cs
- ObjectDataSource.cs
- CurrentChangedEventManager.cs
- _HeaderInfo.cs
- _NestedSingleAsyncResult.cs
- MemberRelationshipService.cs
- COAUTHINFO.cs
- ProfessionalColors.cs
- ColorInterpolationModeValidation.cs
- QueryableDataSourceEditData.cs
- SystemIPInterfaceStatistics.cs
- TemplateNodeContextMenu.cs
- WindowsAuthenticationEventArgs.cs
- DataColumnMapping.cs
- TdsEnums.cs
- ContentControl.cs
- SessionStateModule.cs
- SequentialOutput.cs
- ArraySet.cs
- ExtensionWindowHeader.cs
- OrderByQueryOptionExpression.cs
- TextEditorTyping.cs
- ScaleTransform3D.cs
- _NegoState.cs
- WrappedIUnknown.cs
- FixedLineResult.cs
- DocumentReference.cs
- FileClassifier.cs
- EmptyTextWriter.cs
- Int16Storage.cs
- AsymmetricAlgorithm.cs
- TriggerAction.cs
- X509UI.cs
- DataGridViewButtonColumn.cs
- CodeSubDirectoriesCollection.cs
- CommandField.cs
- XmlArrayItemAttribute.cs
- DataControlFieldCollection.cs
- WindowsSolidBrush.cs
- TextRunCacheImp.cs
- SmiContext.cs
- CatalogZoneBase.cs
- _OSSOCK.cs
- _FixedSizeReader.cs
- FontCacheUtil.cs
- Point3DCollection.cs
- PropertyDescriptors.cs
- InvalidCommandTreeException.cs
- CompilationRelaxations.cs
- ValidationPropertyAttribute.cs
- HtmlControlPersistable.cs
- PassportAuthenticationModule.cs
- FontFamilyValueSerializer.cs
- ToolboxItemFilterAttribute.cs
- SessionStateItemCollection.cs
- PerformanceCounter.cs
- SmiEventSink_Default.cs
- MulticastDelegate.cs
- MultiByteCodec.cs
- DirectoryNotFoundException.cs
- WebScriptServiceHost.cs
- ZipPackagePart.cs
- ChangeTracker.cs
- TextBoxRenderer.cs
- FileLoadException.cs
- DesignObjectWrapper.cs
- EmptyEnumerable.cs
- AuthenticationModuleElement.cs
- _HTTPDateParse.cs
- BufferBuilder.cs
- PartitionerStatic.cs
- RecordManager.cs
- _OverlappedAsyncResult.cs
- ArgumentNullException.cs