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
- BrowserPolicyValidator.cs
- ContentPosition.cs
- Graph.cs
- NameSpaceExtractor.cs
- CopyAction.cs
- TreeChangeInfo.cs
- ServiceDocument.cs
- ColorConvertedBitmapExtension.cs
- XmlNodeList.cs
- RequestQueue.cs
- CorrelationResolver.cs
- ParallelEnumerableWrapper.cs
- ToolZone.cs
- OrderedDictionary.cs
- CommonGetThemePartSize.cs
- BuildProviderAppliesToAttribute.cs
- UnaryQueryOperator.cs
- SspiHelper.cs
- BufferModeSettings.cs
- TypeTypeConverter.cs
- DataGridViewCellMouseEventArgs.cs
- DataTablePropertyDescriptor.cs
- DurableOperationContext.cs
- ColorTransformHelper.cs
- RemotingSurrogateSelector.cs
- WindowAutomationPeer.cs
- __TransparentProxy.cs
- UriParserTemplates.cs
- SerializationInfoEnumerator.cs
- basenumberconverter.cs
- ArrayElementGridEntry.cs
- TableLayoutPanelCellPosition.cs
- XmlAttributeCollection.cs
- TreeWalker.cs
- CancellableEnumerable.cs
- CheckBoxField.cs
- QueueProcessor.cs
- dsa.cs
- XmlAnyElementAttribute.cs
- PrinterSettings.cs
- ScrollBarAutomationPeer.cs
- MessageUtil.cs
- Message.cs
- HttpProcessUtility.cs
- ControlParameter.cs
- CharKeyFrameCollection.cs
- PeerNameRegistration.cs
- PageSettings.cs
- Int32Collection.cs
- ExpressionHelper.cs
- SchemaElementLookUpTable.cs
- SQLInt32.cs
- TypeDescriptorContext.cs
- StorageEntityContainerMapping.cs
- HMAC.cs
- BypassElement.cs
- SmiContext.cs
- BaseTemplateParser.cs
- EnlistmentTraceIdentifier.cs
- sqlpipe.cs
- XslAst.cs
- WorkflowInstanceExtensionProvider.cs
- StrongName.cs
- DocumentPageHost.cs
- PrintControllerWithStatusDialog.cs
- PhonemeEventArgs.cs
- CultureInfoConverter.cs
- TextOutput.cs
- NavigationProperty.cs
- WindowsGraphics2.cs
- UshortList2.cs
- GregorianCalendar.cs
- TextDocumentView.cs
- ListItem.cs
- ValidationResult.cs
- IgnoreSection.cs
- DesignColumn.cs
- XmlSortKeyAccumulator.cs
- SizeAnimationBase.cs
- SqlTypesSchemaImporter.cs
- WSSecurityTokenSerializer.cs
- LogicalExpr.cs
- BuilderInfo.cs
- ParameterReplacerVisitor.cs
- AnonymousIdentificationSection.cs
- InputQueue.cs
- ProcessHost.cs
- AttributeConverter.cs
- DLinqTableProvider.cs
- ZoneLinkButton.cs
- returneventsaver.cs
- ListViewInsertionMark.cs
- Module.cs
- AdapterUtil.cs
- WindowsSlider.cs
- TrimSurroundingWhitespaceAttribute.cs
- PropertyDescriptor.cs
- XmlTextWriter.cs
- DataControlImageButton.cs
- DocumentReferenceCollection.cs