Code:
/ FX-1434 / FX-1434 / 1.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
- SerializationInfoEnumerator.cs
- ChooseAction.cs
- CalendarDesigner.cs
- DataGridPagerStyle.cs
- TemplateKeyConverter.cs
- DashStyle.cs
- DataSourceComponent.cs
- AbandonedMutexException.cs
- RoutedUICommand.cs
- ObjectListDataBindEventArgs.cs
- EntityContainerRelationshipSetEnd.cs
- SaveFileDialog.cs
- BitmapEffectCollection.cs
- DesignTimeSiteMapProvider.cs
- ConfigurationPropertyAttribute.cs
- BindingValueChangedEventArgs.cs
- DocumentViewer.cs
- NativeMethods.cs
- IndicCharClassifier.cs
- WebHeaderCollection.cs
- ToolStripManager.cs
- WebPageTraceListener.cs
- ResourceManagerWrapper.cs
- ListViewEditEventArgs.cs
- ConfigurationElement.cs
- XmlParserContext.cs
- TimeSpanParse.cs
- OutOfMemoryException.cs
- CqlBlock.cs
- WinFormsComponentEditor.cs
- UnionCodeGroup.cs
- CompositeActivityValidator.cs
- PhoneCallDesigner.cs
- NumericExpr.cs
- SimpleWorkerRequest.cs
- RegexMatchCollection.cs
- BaseAsyncResult.cs
- MediaPlayer.cs
- SHA512Cng.cs
- SafeEventLogWriteHandle.cs
- AppSecurityManager.cs
- X509Chain.cs
- DynamicControl.cs
- XamlHostingSectionGroup.cs
- FrameworkPropertyMetadata.cs
- DetailsView.cs
- safelink.cs
- ButtonChrome.cs
- ClientData.cs
- ResXBuildProvider.cs
- CultureSpecificStringDictionary.cs
- TriggerCollection.cs
- TraceContextEventArgs.cs
- DrawListViewItemEventArgs.cs
- Latin1Encoding.cs
- ResolvedKeyFrameEntry.cs
- WorkflowApplicationCompletedEventArgs.cs
- SendDesigner.xaml.cs
- Condition.cs
- CSharpCodeProvider.cs
- WebServicesDescriptionAttribute.cs
- StructuredType.cs
- MediaElementAutomationPeer.cs
- TextRange.cs
- DeviceContexts.cs
- SimpleFileLog.cs
- TrustManager.cs
- DocumentOrderQuery.cs
- TypeUtil.cs
- NetSectionGroup.cs
- JulianCalendar.cs
- WindowInteropHelper.cs
- followingquery.cs
- ConfigurationSettings.cs
- SetStateDesigner.cs
- ProvideValueServiceProvider.cs
- PolicyConversionContext.cs
- SchemaMapping.cs
- SettingsPropertyNotFoundException.cs
- LambdaSerializationException.cs
- ConstructorBuilder.cs
- TemplatePartAttribute.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- UserUseLicenseDictionaryLoader.cs
- PrintSystemException.cs
- ComPlusDiagnosticTraceRecords.cs
- ConvertEvent.cs
- TextEditor.cs
- SpellerInterop.cs
- MimeReflector.cs
- CollectionBase.cs
- BypassElementCollection.cs
- WindowsAltTab.cs
- WinFormsSpinner.cs
- XhtmlBasicPhoneCallAdapter.cs
- QueryStatement.cs
- PhoneCall.cs
- NonParentingControl.cs
- SrgsSubset.cs
- JoinGraph.cs