DbNetSuiteVS
FileColumn Class
NamespacesDbNetLink.DbNetSuiteVSFileColumn
Defines the attributes of a column in the DbNetFile control
Declaration Syntax
C#Visual Basic
[SerializableAttribute]
public class FileColumn
<SerializableAttribute> _
Public Class FileColumn
Members
All MembersConstructorsProperties



IconMemberDescription
FileColumn(DbNetFile..::.ColumnTypes)
Initializes a new instance of the FileColumn class

FileColumn(DbNetFile..::.ColumnTypes, String)
Initializes a new instance of the FileColumn class

FileColumn()()()
Initializes a new instance of the FileColumn class

BrowseDisplay
Specifies that the column should be included in the browse display

ColumnType
Specifies the type of file information to be associated with the column

Format
Specifies the formatting string for date columns

IndexingServiceColumnType
Specifies the Indexing Service property associated with the column

Label
Specifies the column label

Search
Specifies that the column should be included in the search dialog

SearchDisplay
Specifies that the column should be included in the search results display

Selectable
Specifies that the column should be converted into a selectable link

WindowsSearchColumnType
Specifies the Windows Search property associated with the column

Examples
CopyC#
private void button1_Click(object sender, EventArgs e)
{
       DbNetData SourceConnection = new DbNetData("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=../data/source.mdb");
       DbNetData TargetConnection = new DbNetData("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=../data/target.mdb");
       using (DbNetCopy DbCopy = new DbNetCopy(SourceConnection, TargetConnection))
       {
           DbCopy.EmptyTargetDatabase();
           DbCopy.OnBeforeRowCopied += ReviewDataToCopy;
           DbCopy.CopyTable("customers");
           DbCopy.CopyTable("products");
       }
}

private void ReviewDataToCopy(DbNetCopy DbCopy, ListDictionary Params)
{
       switch (DbCopy.CurrentTargetTableName.ToLower())
       {
           case "customers":
               switch (Params["Country"].ToString())
               {
                   // Set the Region to EU for european countries
                   case "UK":
                   case "France":
                   case "Germany":
                   case "Spain":
                       Params["Region"] = "EU";
                       break;
               }
               break;
           case "products":
               // Do not copy discontinued products
               if (( bool)Params["Discontinued"] )
                   Params.Clear();
               break;
       }
   }
Inheritance Hierarchy
Object
FileColumn

Assembly: DbNetLink.DbNetSuiteVS (Module: DbNetLink.DbNetSuiteVS) Version: 0.9.3317.16858 (0.9.0.0)