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
- AudioFormatConverter.cs
- Column.cs
- TemplatePropertyEntry.cs
- TripleDESCryptoServiceProvider.cs
- DocumentXPathNavigator.cs
- MediaTimeline.cs
- ToolStripLabel.cs
- MetadataPropertyCollection.cs
- WSTransactionSection.cs
- Pen.cs
- LabelLiteral.cs
- DataExpression.cs
- HMACSHA512.cs
- TextControl.cs
- ModelMemberCollection.cs
- ExtensionFile.cs
- Shared.cs
- GraphicsPathIterator.cs
- TraceSwitch.cs
- ComboBox.cs
- RawStylusInputCustomData.cs
- TextBoxView.cs
- XNameTypeConverter.cs
- CustomActivityDesigner.cs
- SqlCrossApplyToCrossJoin.cs
- NamespaceDecl.cs
- XNameConverter.cs
- SslSecurityTokenParameters.cs
- QilSortKey.cs
- VideoDrawing.cs
- Event.cs
- TableLayoutRowStyleCollection.cs
- ServiceChannelProxy.cs
- Config.cs
- CollectionViewGroup.cs
- SqlParameterCollection.cs
- TextTreeInsertUndoUnit.cs
- ListViewInsertionMark.cs
- SyndicationDeserializer.cs
- CodeSnippetStatement.cs
- DetailsViewRowCollection.cs
- AnnotationObservableCollection.cs
- ExecutionTracker.cs
- EditingCommands.cs
- PersonalizationState.cs
- _ChunkParse.cs
- ConfigurationStrings.cs
- StrokeRenderer.cs
- GeneralTransform.cs
- AVElementHelper.cs
- BridgeDataReader.cs
- NegationPusher.cs
- COM2IPerPropertyBrowsingHandler.cs
- ReflectionServiceProvider.cs
- AsyncContentLoadedEventArgs.cs
- XamlWriterExtensions.cs
- ExtendedProtectionPolicyElement.cs
- SecurityContext.cs
- XmlParserContext.cs
- AdPostCacheSubstitution.cs
- AssemblyAttributesGoHere.cs
- ArraySet.cs
- ContentFileHelper.cs
- RoutedPropertyChangedEventArgs.cs
- ToolStripKeyboardHandlingService.cs
- SecurityHeaderTokenResolver.cs
- SafeArrayRankMismatchException.cs
- DataGridViewRow.cs
- ResourceExpression.cs
- TypedReference.cs
- TransformerTypeCollection.cs
- Model3D.cs
- DataBindEngine.cs
- ContextBase.cs
- PersistenceTypeAttribute.cs
- ShortcutKeysEditor.cs
- ObjectTag.cs
- BlockCollection.cs
- URIFormatException.cs
- EnumValidator.cs
- StreamGeometry.cs
- Rfc2898DeriveBytes.cs
- NavigationProgressEventArgs.cs
- ResourceDictionary.cs
- IdentityVerifier.cs
- XmlSchemaImporter.cs
- GetPolicyDetailsRequest.cs
- TypeValidationEventArgs.cs
- ProxyElement.cs
- ReversePositionQuery.cs
- ArrayElementGridEntry.cs
- ObjectListComponentEditor.cs
- ReadOnlyDataSourceView.cs
- Size3D.cs
- ArraySet.cs
- CodeMemberField.cs
- DataViewSettingCollection.cs
- CoreSwitches.cs
- CodeTypeDeclaration.cs
- DataGridViewDataConnection.cs