Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Data / System / Data / DataViewSetting.cs / 1 / DataViewSetting.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //[....] //----------------------------------------------------------------------------- namespace System.Data { using System; using System.ComponentModel; [ TypeConverter((typeof(ExpandableObjectConverter))), ] #if WINFSInternalOnly internal #else public #endif 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MTConfigUtil.cs
- BitmapMetadataEnumerator.cs
- BitmapPalettes.cs
- ProcessMonitor.cs
- SHA384.cs
- InvokeMethodActivityDesigner.cs
- TickBar.cs
- XmlSchemaSimpleContent.cs
- DataServiceResponse.cs
- PrintPreviewDialog.cs
- RelationshipEntry.cs
- Predicate.cs
- Control.cs
- BamlWriter.cs
- HttpCookie.cs
- GridViewCommandEventArgs.cs
- SoapCodeExporter.cs
- DependsOnAttribute.cs
- DocumentsTrace.cs
- RectKeyFrameCollection.cs
- SingleAnimation.cs
- ColumnHeaderConverter.cs
- RSAPKCS1KeyExchangeFormatter.cs
- IFlowDocumentViewer.cs
- ValidatingReaderNodeData.cs
- XmlDeclaration.cs
- SRef.cs
- HttpRuntimeSection.cs
- WebPartConnectVerb.cs
- Collection.cs
- SuppressIldasmAttribute.cs
- MenuItemStyleCollection.cs
- FontStretchConverter.cs
- ComponentEditorForm.cs
- BitmapFrameEncode.cs
- BamlLocalizableResource.cs
- MachineKeySection.cs
- DataGridViewCellPaintingEventArgs.cs
- BaseServiceProvider.cs
- XslTransform.cs
- IpcServerChannel.cs
- AttachedAnnotation.cs
- AsymmetricKeyExchangeFormatter.cs
- FileSystemEventArgs.cs
- RouteValueExpressionBuilder.cs
- InertiaExpansionBehavior.cs
- CurrentChangedEventManager.cs
- DefaultValueAttribute.cs
- HashMembershipCondition.cs
- httpserverutility.cs
- QueryTask.cs
- X509InitiatorCertificateServiceElement.cs
- EditorZoneBase.cs
- SegmentInfo.cs
- NativeMethods.cs
- TextFormatterContext.cs
- RedBlackList.cs
- ColumnCollection.cs
- TemplateInstanceAttribute.cs
- XmlHierarchicalDataSourceView.cs
- HwndSourceParameters.cs
- XmlObjectSerializer.cs
- HyperLinkStyle.cs
- Conditional.cs
- DiscoveryClientDuplexChannel.cs
- UnaryExpression.cs
- FontWeight.cs
- AuthenticationConfig.cs
- PolicyImporterElement.cs
- ProtectedConfiguration.cs
- DataMemberAttribute.cs
- Adorner.cs
- Point3DCollection.cs
- PrimitiveXmlSerializers.cs
- HtmlControlAdapter.cs
- DataGridViewRowCancelEventArgs.cs
- CodeMemberEvent.cs
- InfiniteIntConverter.cs
- ServiceDesigner.xaml.cs
- WindowsSlider.cs
- NamedPermissionSet.cs
- CodeTypeParameterCollection.cs
- ByteStorage.cs
- IItemProperties.cs
- CompositeDataBoundControl.cs
- ProtocolsSection.cs
- MsmqUri.cs
- OutputCacheSection.cs
- ScrollChrome.cs
- ComplexPropertyEntry.cs
- ThemeableAttribute.cs
- BulletedListEventArgs.cs
- DataGridViewSelectedRowCollection.cs
- ByteAnimationUsingKeyFrames.cs
- ProcessInfo.cs
- WorkflowInstanceProvider.cs
- PeerCustomResolverSettings.cs
- ResourceManagerWrapper.cs
- VisualStateChangedEventArgs.cs
- TcpChannelHelper.cs