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
- WindowShowOrOpenTracker.cs
- LabelTarget.cs
- PersonalizableAttribute.cs
- ErrorsHelper.cs
- ObjectTag.cs
- ListItemCollection.cs
- AuthenticationModuleElementCollection.cs
- XLinq.cs
- ManagementQuery.cs
- EdgeModeValidation.cs
- ScriptResourceInfo.cs
- DataGrid.cs
- TerminateSequenceResponse.cs
- GridItemCollection.cs
- UrlPath.cs
- DbParameterCollectionHelper.cs
- MetadataCollection.cs
- HtmlEmptyTagControlBuilder.cs
- NameTable.cs
- AutoSizeToolBoxItem.cs
- EntityCodeGenerator.cs
- WsdlInspector.cs
- CatalogZoneBase.cs
- OutputScopeManager.cs
- SettingsProperty.cs
- MediaPlayer.cs
- SequenceRangeCollection.cs
- DeclarativeCatalogPart.cs
- TextTrailingCharacterEllipsis.cs
- XmlSchemaChoice.cs
- BindableAttribute.cs
- ExpandCollapsePattern.cs
- hebrewshape.cs
- WebPartTransformerAttribute.cs
- SplayTreeNode.cs
- ButtonFlatAdapter.cs
- StaticTextPointer.cs
- UserControl.cs
- EventPropertyMap.cs
- CompilerErrorCollection.cs
- XPathException.cs
- XmlSchemaObjectTable.cs
- DataServiceProviderWrapper.cs
- RsaSecurityKey.cs
- odbcmetadatafactory.cs
- IpcPort.cs
- HttpClientCertificate.cs
- GradientStop.cs
- EllipticalNodeOperations.cs
- XmlParserContext.cs
- ResolveMatchesCD1.cs
- EntitySet.cs
- TableLayoutCellPaintEventArgs.cs
- PriorityChain.cs
- DeviceContexts.cs
- PolicyException.cs
- EpmCustomContentDeSerializer.cs
- MsmqVerifier.cs
- Visual.cs
- PerformanceCounterPermission.cs
- ContextQuery.cs
- TCPListener.cs
- Script.cs
- ToolboxBitmapAttribute.cs
- MultitargetUtil.cs
- ParseChildrenAsPropertiesAttribute.cs
- DefaultPrintController.cs
- FixedDocument.cs
- FontStretchConverter.cs
- ExceptionTrace.cs
- MailFileEditor.cs
- RbTree.cs
- FunctionParameter.cs
- LineGeometry.cs
- SafeFileHandle.cs
- PeerApplicationLaunchInfo.cs
- AttributeQuery.cs
- TraceUtility.cs
- CodeConstructor.cs
- GiveFeedbackEventArgs.cs
- LocationSectionRecord.cs
- DrawingBrush.cs
- BaseAsyncResult.cs
- CultureTable.cs
- SqlProvider.cs
- ContractComponent.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- DataStreams.cs
- FillRuleValidation.cs
- XmlAttribute.cs
- UserNameServiceElement.cs
- safemediahandle.cs
- ObjectCacheHost.cs
- PopupEventArgs.cs
- ByteFacetDescriptionElement.cs
- ScriptManagerProxy.cs
- EntityModelSchemaGenerator.cs
- EnumerableRowCollectionExtensions.cs
- GregorianCalendarHelper.cs
- ImageCodecInfoPrivate.cs