Defines the attributes of a column in the DbNetFile control
| C# | Visual Basic |
[SerializableAttribute] public class FileColumn
<SerializableAttribute> _ Public Class FileColumn
| All Members | Constructors | Properties | |||
| Icon | Member | Description |
|---|---|---|
| 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
|
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; } }
| Object | |
| FileColumn | |