Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- DetailsViewModeEventArgs.cs
- TextTreeRootTextBlock.cs
- DataGridTableCollection.cs
- Cursors.cs
- PreviewPrintController.cs
- BinaryMethodMessage.cs
- TextSimpleMarkerProperties.cs
- SettingsPropertyIsReadOnlyException.cs
- TakeQueryOptionExpression.cs
- ContractNamespaceAttribute.cs
- FileAuthorizationModule.cs
- HMACMD5.cs
- ConfigXmlWhitespace.cs
- _NestedMultipleAsyncResult.cs
- XmlMapping.cs
- BooleanKeyFrameCollection.cs
- RTLAwareMessageBox.cs
- RangeValueProviderWrapper.cs
- BamlLocalizableResource.cs
- Utils.cs
- StateMachineWorkflowInstance.cs
- WindowsRichEditRange.cs
- CollectionChangeEventArgs.cs
- SqlDataReader.cs
- QilExpression.cs
- codemethodreferenceexpression.cs
- AllMembershipCondition.cs
- XmlQualifiedNameTest.cs
- XmlValueConverter.cs
- BufferedStream.cs
- HiddenField.cs
- WindowsGraphicsCacheManager.cs
- PingReply.cs
- DataObjectSettingDataEventArgs.cs
- CheckBoxDesigner.cs
- ICspAsymmetricAlgorithm.cs
- _SecureChannel.cs
- DispatchChannelSink.cs
- Permission.cs
- ObjectDataSourceDesigner.cs
- MimeTypeMapper.cs
- BaseDataBoundControl.cs
- PrintPreviewDialog.cs
- GenericPrincipal.cs
- ResourcePermissionBase.cs
- UserNameSecurityTokenParameters.cs
- HandleCollector.cs
- PasswordDeriveBytes.cs
- PreloadedPackages.cs
- ExpandSegmentCollection.cs
- DecimalFormatter.cs
- RequestSecurityTokenSerializer.cs
- OletxCommittableTransaction.cs
- Soap12ServerProtocol.cs
- SessionStateUtil.cs
- DbConnectionFactory.cs
- DBCSCodePageEncoding.cs
- CultureMapper.cs
- RegexMatch.cs
- QuaternionKeyFrameCollection.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- EdgeModeValidation.cs
- PaginationProgressEventArgs.cs
- ResourceReferenceExpression.cs
- FormatConvertedBitmap.cs
- HostedHttpRequestAsyncResult.cs
- ComponentCommands.cs
- ExpressionContext.cs
- SqlConnectionManager.cs
- ManagementEventWatcher.cs
- TransformGroup.cs
- DateTimeFormat.cs
- ResourceType.cs
- ListBase.cs
- UrlPath.cs
- SQLBytes.cs
- AcceleratedTokenProvider.cs
- FigureParagraph.cs
- EventDescriptor.cs
- DeclarationUpdate.cs
- DataTableExtensions.cs
- Visual.cs
- URL.cs
- RadioButton.cs
- DesignColumnCollection.cs
- EtwTrace.cs
- BuildProvider.cs
- DataControlImageButton.cs
- DataControlField.cs
- TextPointer.cs
- XmlSchemaComplexContentRestriction.cs
- DataSvcMapFileSerializer.cs
- HttpRequest.cs
- FontWeights.cs
- RelationshipNavigation.cs
- DetailsViewCommandEventArgs.cs
- TextEditorSelection.cs
- ObjRef.cs
- WmlCommandAdapter.cs
- Geometry.cs