DataViewSetting serializable

DataViewSetting serializable

System.Data (system.data.dll) class

This class encapsulates the settings that create a DataView from a DataViewManager .

 public class  DataViewSetting  {  // Public Instance Properties  public bool  ApplyDefaultSort  {set; get; } 
   public DataViewManager  DataViewManager  {get; } 
   public string  RowFilter  {set; get; } 
   public DataViewRowState  RowStateFilter  {set; get; } 
   public string  Sort  {set; get; } 
   public DataTable  Table  {get; } 
} 

Returned By

DataViewSettingCollection.this

Passed To

DataViewSettingCollection.this

DataViewSettingCollection serializable

System.Data (system.data.dll) class

This class contains a collection of DataViewSetting objects and is used by the DataViewManager class. The DataViewManager provides one DataViewSetting instance for each DataTable in a DataSet . These DataViewSetting objects can then be used to set default values when creating DataView instances. You can locate an individual DataViewSetting object in this collection using its index, table name , or corresponding DataTable object.

 public class  DataViewSettingCollection  : ICollection, IEnumerable {  // Public Instance Properties  public virtual int  Count  {get; }  // implements ICollection  public bool  IsReadOnly  {get; } 
   public bool  IsSynchronized  {get; }  // implements ICollection  public object  SyncRoot  {get; }  // implements ICollection  public virtual DataViewSetting  this[string    tableName   {get; } 
   public virtual DataViewSetting  this[int    index    ]  {set; get; } 
   public virtual DataViewSetting  this[DataTable    table    ]  {set; get; }  // Public Instance Methods  public void  CopyTo  ( Array   ar   , int   index   );  // implements ICollection  public IEnumerator  GetEnumerator  (  );  // implements IEnumerable  } 

Returned By

DataViewManager.DataViewSettings

DBConcurrencyException serializable

System.Data (system.data.dll) sealed class

The exception is thrown by a DataAdapter if an attempt to update, delete, or insert a row results in zero affected rows. For example, if a data adapter attempts to execute a SQL DELETE statement to remove the record corresponding to a deleted DataRow from the data source, and no rows are deleted, this exception will be thrown. This exception usually indicates that another user has already modified the row you are attempting to update and a matching row can't be found. You can suppress the DBConcurrencyException by setting the System.Data.Common.DataAdapter.ContinueUpdateOnError property to true , in which case invalid rows are skipped , and the error information is placed in the DataRow.RowError property of rows having errors. Alternatively, you can respond to concurrency errors during the update (and suppress them if needed) by handling the data adapter's RowUpdating event.

 public sealed class  DBConcurrencyException  : SystemException {  // Public Constructors  public  DBConcurrencyException  (  );  
   public  DBConcurrencyException  ( string   message   );  
   public  DBConcurrencyException  (string   message   , Exception   inner   );  // Public Instance Properties  public DataRow  Row  {set; get; }  // Public Instance Methods  public override void  GetObjectData  (System.Runtime.Serialization.SerializationInfo   si   , 
        System.Runtime.Serialization.StreamingContext   context   );  // overrides Exception  } 

Hierarchy

System.Object figs/u2192.gif System.Exception(System.Runtime.Serialization.ISerializable) figs/u2192.gif System.SystemException figs/u2192.gif DBConcurrencyException