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
- ToolStripPanelCell.cs
- OrElse.cs
- ModelTreeManager.cs
- PropertyGeneratedEventArgs.cs
- InvokeBinder.cs
- VisualBasicHelper.cs
- StringValueSerializer.cs
- DesignerForm.cs
- FormViewModeEventArgs.cs
- DataProtectionSecurityStateEncoder.cs
- FormsIdentity.cs
- PenContext.cs
- TagMapInfo.cs
- xamlnodes.cs
- WindowsRichEditRange.cs
- ResponseStream.cs
- CompareInfo.cs
- AssemblyBuilder.cs
- WebPartsPersonalization.cs
- QueryExtender.cs
- basemetadatamappingvisitor.cs
- StaticSiteMapProvider.cs
- DataColumnMappingCollection.cs
- ProtocolElement.cs
- SafeHandles.cs
- __ConsoleStream.cs
- RectangleConverter.cs
- ExtendedPropertyDescriptor.cs
- TraceUtility.cs
- GZipDecoder.cs
- RowUpdatedEventArgs.cs
- TraceRecord.cs
- CodeGen.cs
- ListGeneralPage.cs
- Literal.cs
- DataTransferEventArgs.cs
- TypeConverterHelper.cs
- PointKeyFrameCollection.cs
- NameSpaceExtractor.cs
- ServiceHttpHandlerFactory.cs
- UserControl.cs
- Constants.cs
- DbDeleteCommandTree.cs
- AudioBase.cs
- InArgumentConverter.cs
- ContentAlignmentEditor.cs
- NavigationPropertyEmitter.cs
- SmiContextFactory.cs
- CodeMemberEvent.cs
- TextParaLineResult.cs
- SafeTokenHandle.cs
- FormatterConverter.cs
- XmlNodeChangedEventManager.cs
- ExceptionValidationRule.cs
- RegisteredHiddenField.cs
- BaseDataBoundControl.cs
- CodeTypeReferenceCollection.cs
- MediaEntryAttribute.cs
- ResourceDictionaryCollection.cs
- PersonalizationDictionary.cs
- QueryRewriter.cs
- ADMembershipUser.cs
- BitConverter.cs
- ContextMenuService.cs
- CodeGeneratorOptions.cs
- EditCommandColumn.cs
- BindingExpressionBase.cs
- PaintValueEventArgs.cs
- DriveInfo.cs
- QilInvokeLateBound.cs
- ConfigXmlComment.cs
- KeyValueInternalCollection.cs
- CounterSetInstance.cs
- XmlQueryRuntime.cs
- hresults.cs
- ContentOperations.cs
- XmlSchemaAny.cs
- ProfileParameter.cs
- DrawingContextWalker.cs
- ToolTipAutomationPeer.cs
- XmlIterators.cs
- RootBuilder.cs
- DataGridViewCellParsingEventArgs.cs
- StringSorter.cs
- StyleXamlParser.cs
- ThaiBuddhistCalendar.cs
- GlobalizationAssembly.cs
- TextTreeInsertElementUndoUnit.cs
- SizeAnimationUsingKeyFrames.cs
- PaperSize.cs
- RegexInterpreter.cs
- FixUp.cs
- XmlChildNodes.cs
- GridErrorDlg.cs
- StringUtil.cs
- SspiSafeHandles.cs
- FieldNameLookup.cs
- SoapSchemaExporter.cs
- RadioButtonPopupAdapter.cs
- ReadWriteSpinLock.cs