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
- SecurityException.cs
- ViewCellSlot.cs
- HttpApplication.cs
- Pen.cs
- RectAnimation.cs
- HasCopySemanticsAttribute.cs
- LookupBindingPropertiesAttribute.cs
- OpacityConverter.cs
- FloaterParagraph.cs
- DrawingGroup.cs
- RectangleGeometry.cs
- TabletCollection.cs
- ParameterElementCollection.cs
- Condition.cs
- AnnotationMap.cs
- XmlSchemaSimpleContentRestriction.cs
- AssemblyCollection.cs
- _TLSstream.cs
- HttpDebugHandler.cs
- TableChangeProcessor.cs
- DrawingGroup.cs
- DocumentReference.cs
- VisualBasicExpressionConverter.cs
- InvalidWMPVersionException.cs
- Itemizer.cs
- XmlRootAttribute.cs
- CompilationUtil.cs
- HtmlInputRadioButton.cs
- Relationship.cs
- WebServiceHandler.cs
- ClockGroup.cs
- HtmlInputFile.cs
- OutputCacheProfileCollection.cs
- DataPagerFieldCommandEventArgs.cs
- AlignmentYValidation.cs
- ScriptBehaviorDescriptor.cs
- TreeView.cs
- CollaborationHelperFunctions.cs
- WebPartDisplayModeEventArgs.cs
- LineVisual.cs
- DescendantOverDescendantQuery.cs
- DuplicateWaitObjectException.cs
- ListItemCollection.cs
- PipelineModuleStepContainer.cs
- PolicyManager.cs
- WrapperEqualityComparer.cs
- OpenTypeLayout.cs
- EntityViewGenerationAttribute.cs
- DataGridItemEventArgs.cs
- PlainXmlDeserializer.cs
- GB18030Encoding.cs
- autovalidator.cs
- SiteMapNode.cs
- DataGridAddNewRow.cs
- DBSqlParserTable.cs
- WindowsServiceElement.cs
- SoundPlayerAction.cs
- OutOfProcStateClientManager.cs
- WpfGeneratedKnownTypes.cs
- StringTraceRecord.cs
- CriticalHandle.cs
- ListControl.cs
- EntityReference.cs
- Version.cs
- BatchServiceHost.cs
- DefaultValidator.cs
- ComponentDispatcher.cs
- ColumnResult.cs
- HierarchicalDataSourceControl.cs
- SqlConnection.cs
- PrintSystemException.cs
- ClientConfigurationSystem.cs
- WebPartHelpVerb.cs
- Behavior.cs
- DbConnectionClosed.cs
- ScrollBar.cs
- Module.cs
- WorkItem.cs
- WebPartCancelEventArgs.cs
- ControlUtil.cs
- DataBindEngine.cs
- TextPointer.cs
- Misc.cs
- RecommendedAsConfigurableAttribute.cs
- ZeroOpNode.cs
- BoundField.cs
- Control.cs
- Graphics.cs
- WindowsTab.cs
- BitmapEncoder.cs
- PropertyTab.cs
- TextTrailingWordEllipsis.cs
- KeyedHashAlgorithm.cs
- OletxResourceManager.cs
- XmlSchemaSubstitutionGroup.cs
- SimpleWorkerRequest.cs
- Registry.cs
- FileDialogPermission.cs
- XmlSchemaSimpleTypeRestriction.cs
- FrameworkElement.cs