Click here to Skip to main content
15,879,535 members
Articles / Web Development / HTML

Windows and Web Generic Components

Rate me:
Please Sign up or sign in to vote.
4.08/5 (7 votes)
23 Jul 2008CPOL4 min read 27.3K   742   15  
A method to create Windows and Web components with the same interface
using System.Windows.Forms;
using App.DataSets;
using Framework.baInterfaces;
using Framework.UI.baWinControls;
using Framework.UI.baWinControls.Designer;
namespace App.WinForm.BaseFrm
{
    partial class LookupForm
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;
        private baTextBox GeoTblNameTxt;
        private AddEditDel addEditDel;
        private baComboBox GeoTblKindCombo;
        private baBindingManager GeoBindingManager;
        private baBindingRelation GeoBindingRelation;
        private baBindingManager EntityBindingManager;
        private baComboBox EntityComboView;
        private AddEditDel addEditDelDetailView;
        private baTextBox EntityTextBoxView;
        private GeoDataSet geoDataSet;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
            this.geoDataSet = new App.DataSets.GeoDataSet();
            this.splitContainer1 = new System.Windows.Forms.SplitContainer();
            this.GeoTablebaGrid = new Framework.UI.baWinControls.baGrid();
            this.iDDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.parentIDDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.nameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.kindDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.descriptionDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.GeoBindingManager = new Framework.UI.baWinControls.baBindingManager();
            this.addEditDel = new Framework.UI.baWinControls.AddEditDel();
            this.GeoTblNameTxt = new Framework.UI.baWinControls.baTextBox();
            this.GeoTblBaTreeView = new Framework.UI.baWinControls.baTreeView();
            this.GeoTblKindCombo = new Framework.UI.baWinControls.baComboBox();
            this.EntityTableBaGrid = new Framework.UI.baWinControls.baGrid();
            this.iDDataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.geoTableFKDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.nameDataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.kindDataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.EntityBindingManager = new Framework.UI.baWinControls.baBindingManager();
            this.addEditDelDetailView = new Framework.UI.baWinControls.AddEditDel();
            this.EntityTextBoxView = new Framework.UI.baWinControls.baTextBox();
            this.EntityComboView = new Framework.UI.baWinControls.baComboBox();
            this.GeoBindingRelation = new Framework.UI.baWinControls.Designer.baBindingRelation();
            ((System.ComponentModel.ISupportInitialize)(this.geoDataSet)).BeginInit();
            this.splitContainer1.Panel1.SuspendLayout();
            this.splitContainer1.Panel2.SuspendLayout();
            this.splitContainer1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.GeoTablebaGrid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.GeoBindingManager)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.EntityTableBaGrid)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.EntityBindingManager)).BeginInit();
            this.SuspendLayout();
            // 
            // geoDataSet
            // 
            this.geoDataSet.DataSetName = "GeoDataSet";
            this.geoDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
            // 
            // splitContainer1
            // 
            this.splitContainer1.BackColor = System.Drawing.Color.Navy;
            this.splitContainer1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
            this.splitContainer1.ForeColor = System.Drawing.SystemColors.ControlText;
            this.splitContainer1.IsSplitterFixed = true;
            this.splitContainer1.Location = new System.Drawing.Point(0, 0);
            this.splitContainer1.Name = "splitContainer1";
            this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
            // 
            // splitContainer1.Panel1
            // 
            this.splitContainer1.Panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(231)))), ((int)(((byte)(231)))), ((int)(((byte)(255)))));
            this.splitContainer1.Panel1.Controls.Add(this.GeoTablebaGrid);
            this.splitContainer1.Panel1.Controls.Add(this.addEditDel);
            this.splitContainer1.Panel1.Controls.Add(this.GeoTblNameTxt);
            this.splitContainer1.Panel1.Controls.Add(this.GeoTblBaTreeView);
            this.splitContainer1.Panel1.Controls.Add(this.GeoTblKindCombo);
            // 
            // splitContainer1.Panel2
            // 
            this.splitContainer1.Panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(231)))), ((int)(((byte)(231)))), ((int)(((byte)(255)))));
            this.splitContainer1.Panel2.Controls.Add(this.EntityTableBaGrid);
            this.splitContainer1.Panel2.Controls.Add(this.addEditDelDetailView);
            this.splitContainer1.Panel2.Controls.Add(this.EntityTextBoxView);
            this.splitContainer1.Panel2.Controls.Add(this.EntityComboView);
            this.splitContainer1.Size = new System.Drawing.Size(703, 567);
            this.splitContainer1.SplitterDistance = 223;
            this.splitContainer1.SplitterWidth = 1;
            this.splitContainer1.TabIndex = 11;
            // 
            // GeoTablebaGrid
            // 
            this.GeoTablebaGrid.AllowUserToAddRows = false;
            this.GeoTablebaGrid.AllowUserToDeleteRows = false;
            dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
            dataGridViewCellStyle1.ForeColor = System.Drawing.Color.Navy;
            dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(115)))), ((int)(((byte)(138)))), ((int)(((byte)(156)))));
            dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
            this.GeoTablebaGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
            this.GeoTablebaGrid.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.GeoTablebaGrid.AutoGenerateColumns = false;
            this.GeoTablebaGrid.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(231)))), ((int)(((byte)(231)))), ((int)(((byte)(255)))));
            this.GeoTablebaGrid.Behaviour = Framework.baInterfaces.ComponentUsage.None;
            this.GeoTablebaGrid.BindingManager = null;
            this.GeoTablebaGrid.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.SingleHorizontal;
            this.GeoTablebaGrid.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
            dataGridViewCellStyle2.BackColor = System.Drawing.Color.Navy;
            dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(178)));
            dataGridViewCellStyle2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
            dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(115)))), ((int)(((byte)(138)))), ((int)(((byte)(156)))));
            dataGridViewCellStyle2.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
            dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
            this.GeoTablebaGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
            this.GeoTablebaGrid.ColumnHeadersHeight = 28;
            this.GeoTablebaGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
            this.iDDataGridViewTextBoxColumn,
            this.parentIDDataGridViewTextBoxColumn,
            this.nameDataGridViewTextBoxColumn,
            this.kindDataGridViewTextBoxColumn,
            this.descriptionDataGridViewTextBoxColumn});
            this.GeoTablebaGrid.Cursor = System.Windows.Forms.Cursors.Hand;
            this.GeoTablebaGrid.DataSource = this.GeoBindingManager;
            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
            dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(231)))), ((int)(((byte)(231)))), ((int)(((byte)(255)))));
            dataGridViewCellStyle3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(178)));
            dataGridViewCellStyle3.ForeColor = System.Drawing.Color.Navy;
            dataGridViewCellStyle3.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(115)))), ((int)(((byte)(138)))), ((int)(((byte)(156)))));
            dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
            dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
            this.GeoTablebaGrid.DefaultCellStyle = dataGridViewCellStyle3;
            this.GeoTablebaGrid.DisableAlternateBackColor = System.Drawing.SystemColors.ControlLight;
            this.GeoTablebaGrid.DisableAlternateForeColor = System.Drawing.SystemColors.ControlDarkDark;
            this.GeoTablebaGrid.DisableBackColor = System.Drawing.SystemColors.ControlLightLight;
            this.GeoTablebaGrid.DisableForeColor = System.Drawing.SystemColors.ControlDarkDark;
            this.GeoTablebaGrid.DisableHeaderBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(60)))), ((int)(((byte)(60)))));
            this.GeoTablebaGrid.DisableHeaderForeColor = System.Drawing.SystemColors.ControlLightLight;
            this.GeoTablebaGrid.DisableIndicatorBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(60)))), ((int)(((byte)(60)))));
            this.GeoTablebaGrid.DisableIndicatorForeColor = System.Drawing.SystemColors.ControlLightLight;
            this.GeoTablebaGrid.DisableSelectionBackColor = System.Drawing.SystemColors.ActiveBorder;
            this.GeoTablebaGrid.DisableSelectionForeColor = System.Drawing.SystemColors.ControlDarkDark;
            this.GeoTablebaGrid.EnableAlternateBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(231)))), ((int)(((byte)(231)))), ((int)(((byte)(255)))));
            this.GeoTablebaGrid.EnableAlternateForeColor = System.Drawing.Color.Navy;
            this.GeoTablebaGrid.EnableBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
            this.GeoTablebaGrid.EnableForeColor = System.Drawing.Color.Navy;
            this.GeoTablebaGrid.EnableHeaderBackColor = System.Drawing.Color.Navy;
            this.GeoTablebaGrid.EnableHeaderForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(231)))), ((int)(((byte)(231)))), ((int)(((byte)(255)))));
            this.GeoTablebaGrid.EnableHeadersVisualStyles = false;
            this.GeoTablebaGrid.EnableIndicatorBackColor = System.Drawing.Color.Navy;
            this.GeoTablebaGrid.EnableIndicatorForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(231)))), ((int)(((byte)(231)))), ((int)(((byte)(255)))));
            this.GeoTablebaGrid.EnableSelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(115)))), ((int)(((byte)(138)))), ((int)(((byte)(156)))));
            this.GeoTablebaGrid.EnableSelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(231)))), ((int)(((byte)(231)))), ((int)(((byte)(255)))));
            this.GeoTablebaGrid.GridColor = System.Drawing.Color.White;
            this.GeoTablebaGrid.Location = new System.Drawing.Point(215, 4);
            this.GeoTablebaGrid.MultiSelect = false;
            this.GeoTablebaGrid.Name = "GeoTablebaGrid";
            this.GeoTablebaGrid.ReadOnly = true;
            this.GeoTablebaGrid.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
            this.GeoTablebaGrid.RowHeadersVisible = false;
            this.GeoTablebaGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
            this.GeoTablebaGrid.Size = new System.Drawing.Size(473, 155);
            this.GeoTablebaGrid.TabIndex = 4;
            this.GeoTablebaGrid.ValueField = null;
            // 
            // iDDataGridViewTextBoxColumn
            // 
            this.iDDataGridViewTextBoxColumn.DataPropertyName = "ID";
            this.iDDataGridViewTextBoxColumn.HeaderText = "ID";
            this.iDDataGridViewTextBoxColumn.Name = "iDDataGridViewTextBoxColumn";
            this.iDDataGridViewTextBoxColumn.ReadOnly = true;
            this.iDDataGridViewTextBoxColumn.Width = 45;
            // 
            // parentIDDataGridViewTextBoxColumn
            // 
            this.parentIDDataGridViewTextBoxColumn.DataPropertyName = "ParentID";
            this.parentIDDataGridViewTextBoxColumn.HeaderText = "ParentID";
            this.parentIDDataGridViewTextBoxColumn.Name = "parentIDDataGridViewTextBoxColumn";
            this.parentIDDataGridViewTextBoxColumn.ReadOnly = true;
            this.parentIDDataGridViewTextBoxColumn.Width = 65;
            // 
            // nameDataGridViewTextBoxColumn
            // 
            this.nameDataGridViewTextBoxColumn.DataPropertyName = "Name";
            this.nameDataGridViewTextBoxColumn.HeaderText = "Name";
            this.nameDataGridViewTextBoxColumn.Name = "nameDataGridViewTextBoxColumn";
            this.nameDataGridViewTextBoxColumn.ReadOnly = true;
            this.nameDataGridViewTextBoxColumn.Width = 120;
            // 
            // kindDataGridViewTextBoxColumn
            // 
            this.kindDataGridViewTextBoxColumn.DataPropertyName = "Kind";
            this.kindDataGridViewTextBoxColumn.HeaderText = "Kind";
            this.kindDataGridViewTextBoxColumn.Name = "kindDataGridViewTextBoxColumn";
            this.kindDataGridViewTextBoxColumn.ReadOnly = true;
            // 
            // descriptionDataGridViewTextBoxColumn
            // 
            this.descriptionDataGridViewTextBoxColumn.DataPropertyName = "Description";
            this.descriptionDataGridViewTextBoxColumn.HeaderText = "Description";
            this.descriptionDataGridViewTextBoxColumn.Name = "descriptionDataGridViewTextBoxColumn";
            this.descriptionDataGridViewTextBoxColumn.ReadOnly = true;
            this.descriptionDataGridViewTextBoxColumn.Width = 120;
            // 
            // GeoBindingManager
            // 
            this.GeoBindingManager.DataMember = "GeoTable";
            this.GeoBindingManager.DataSource = this.geoDataSet.GeoTable;
            this.GeoBindingManager.DefaultTransactionState = Framework.baInterfaces.TransactionStateKind.Null;
            this.GeoBindingManager.Enabled = false;
            this.GeoBindingManager.TableName = "GeoTable";
            this.GeoBindingManager.TransactionState = Framework.baInterfaces.TransactionStateKind.EmptyDataSource;
            // 
            // addEditDel
            // 
            this.addEditDel.BindingManager = null;
            this.addEditDel.Cursor = System.Windows.Forms.Cursors.Default;
            this.addEditDel.Location = new System.Drawing.Point(8, 190);
            this.addEditDel.Name = "addEditDel";
            this.addEditDel.OldTransactionState = Framework.baInterfaces.TransactionStateKind.Null;
            this.addEditDel.Size = new System.Drawing.Size(465, 27);
            this.addEditDel.TabIndex = 0;
            this.addEditDel.TransactionState = Framework.baInterfaces.TransactionStateKind.Initial;
            // 
            // GeoTblNameTxt
            // 
            this.GeoTblNameTxt.Behaviour = Framework.baInterfaces.ComponentUsage.None;
            this.GeoTblNameTxt.BindingManager = null;
            this.GeoTblNameTxt.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.GeoTblNameTxt.Location = new System.Drawing.Point(10, 166);
            this.GeoTblNameTxt.Name = "GeoTblNameTxt";
            this.GeoTblNameTxt.Size = new System.Drawing.Size(199, 20);
            this.GeoTblNameTxt.TabIndex = 1;
            this.GeoTblNameTxt.TextField = null;
            // 
            // GeoTblBaTreeView
            // 
            this.GeoTblBaTreeView.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(231)))), ((int)(((byte)(231)))), ((int)(((byte)(255)))));
            this.GeoTblBaTreeView.Behaviour = Framework.baInterfaces.ComponentUsage.None;
            this.GeoTblBaTreeView.BindingManager = null;
            this.GeoTblBaTreeView.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.GeoTblBaTreeView.Cursor = System.Windows.Forms.Cursors.Hand;
            this.GeoTblBaTreeView.DisableBackColor = System.Drawing.SystemColors.ControlLight;
            this.GeoTblBaTreeView.EnableBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(231)))), ((int)(((byte)(231)))), ((int)(((byte)(255)))));
            this.GeoTblBaTreeView.ForeColor = System.Drawing.Color.Navy;
            this.GeoTblBaTreeView.FullRowSelect = true;
            this.GeoTblBaTreeView.HideSelection = false;
            this.GeoTblBaTreeView.HotTracking = true;
            this.GeoTblBaTreeView.Location = new System.Drawing.Point(10, 4);
            this.GeoTblBaTreeView.Name = "GeoTblBaTreeView";
            this.GeoTblBaTreeView.Size = new System.Drawing.Size(199, 156);
            this.GeoTblBaTreeView.TabIndex = 10;
            this.GeoTblBaTreeView.TextField = null;
            this.GeoTblBaTreeView.TransactionState = Framework.baInterfaces.TransactionStateKind.Null;
            this.GeoTblBaTreeView.ValueField = null;
            this.GeoTblBaTreeView.ValueParentField = null;
            // 
            // GeoTblKindCombo
            // 
            this.GeoTblKindCombo.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.GeoTblKindCombo.Behaviour = Framework.baInterfaces.ComponentUsage.None;
            this.GeoTblKindCombo.BindingManager = null;
            this.GeoTblKindCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.GeoTblKindCombo.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.GeoTblKindCombo.FormattingEnabled = true;
            this.GeoTblKindCombo.Location = new System.Drawing.Point(215, 165);
            this.GeoTblKindCombo.Name = "GeoTblKindCombo";
            this.GeoTblKindCombo.Size = new System.Drawing.Size(473, 21);
            this.GeoTblKindCombo.TabIndex = 2;
            this.GeoTblKindCombo.TextField = "";
            this.GeoTblKindCombo.ValueField = "";
            // 
            // EntityTableBaGrid
            // 
            this.EntityTableBaGrid.AllowUserToAddRows = false;
            this.EntityTableBaGrid.AllowUserToDeleteRows = false;
            dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
            dataGridViewCellStyle4.ForeColor = System.Drawing.Color.Navy;
            dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(115)))), ((int)(((byte)(138)))), ((int)(((byte)(156)))));
            dataGridViewCellStyle4.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
            this.EntityTableBaGrid.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle4;
            this.EntityTableBaGrid.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.EntityTableBaGrid.AutoGenerateColumns = false;
            this.EntityTableBaGrid.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(231)))), ((int)(((byte)(231)))), ((int)(((byte)(255)))));
            this.EntityTableBaGrid.Behaviour = Framework.baInterfaces.ComponentUsage.None;
            this.EntityTableBaGrid.BindingManager = null;
            this.EntityTableBaGrid.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.SingleHorizontal;
            this.EntityTableBaGrid.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
            dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
            dataGridViewCellStyle5.BackColor = System.Drawing.Color.Navy;
            dataGridViewCellStyle5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(178)));
            dataGridViewCellStyle5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
            dataGridViewCellStyle5.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(115)))), ((int)(((byte)(138)))), ((int)(((byte)(156)))));
            dataGridViewCellStyle5.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
            dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
            this.EntityTableBaGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5;
            this.EntityTableBaGrid.ColumnHeadersHeight = 28;
            this.EntityTableBaGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
            this.iDDataGridViewTextBoxColumn1,
            this.geoTableFKDataGridViewTextBoxColumn,
            this.nameDataGridViewTextBoxColumn1,
            this.kindDataGridViewTextBoxColumn1});
            this.EntityTableBaGrid.Cursor = System.Windows.Forms.Cursors.Hand;
            this.EntityTableBaGrid.DataSource = this.EntityBindingManager;
            dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
            dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(231)))), ((int)(((byte)(231)))), ((int)(((byte)(255)))));
            dataGridViewCellStyle6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(178)));
            dataGridViewCellStyle6.ForeColor = System.Drawing.Color.Navy;
            dataGridViewCellStyle6.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(115)))), ((int)(((byte)(138)))), ((int)(((byte)(156)))));
            dataGridViewCellStyle6.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
            dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
            this.EntityTableBaGrid.DefaultCellStyle = dataGridViewCellStyle6;
            this.EntityTableBaGrid.DisableAlternateBackColor = System.Drawing.SystemColors.ControlLight;
            this.EntityTableBaGrid.DisableAlternateForeColor = System.Drawing.SystemColors.ControlDarkDark;
            this.EntityTableBaGrid.DisableBackColor = System.Drawing.SystemColors.ControlLightLight;
            this.EntityTableBaGrid.DisableForeColor = System.Drawing.SystemColors.ControlDarkDark;
            this.EntityTableBaGrid.DisableHeaderBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(60)))), ((int)(((byte)(60)))));
            this.EntityTableBaGrid.DisableHeaderForeColor = System.Drawing.SystemColors.Control;
            this.EntityTableBaGrid.DisableIndicatorBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(60)))), ((int)(((byte)(60)))));
            this.EntityTableBaGrid.DisableIndicatorForeColor = System.Drawing.SystemColors.ControlLightLight;
            this.EntityTableBaGrid.DisableSelectionBackColor = System.Drawing.SystemColors.ActiveBorder;
            this.EntityTableBaGrid.DisableSelectionForeColor = System.Drawing.SystemColors.ControlDarkDark;
            this.EntityTableBaGrid.EnableAlternateBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(231)))), ((int)(((byte)(231)))), ((int)(((byte)(255)))));
            this.EntityTableBaGrid.EnableAlternateForeColor = System.Drawing.Color.Navy;
            this.EntityTableBaGrid.EnableBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
            this.EntityTableBaGrid.EnableForeColor = System.Drawing.Color.Navy;
            this.EntityTableBaGrid.EnableHeaderBackColor = System.Drawing.Color.Navy;
            this.EntityTableBaGrid.EnableHeaderForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(231)))), ((int)(((byte)(231)))), ((int)(((byte)(255)))));
            this.EntityTableBaGrid.EnableHeadersVisualStyles = false;
            this.EntityTableBaGrid.EnableIndicatorBackColor = System.Drawing.Color.Navy;
            this.EntityTableBaGrid.EnableIndicatorForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(231)))), ((int)(((byte)(231)))), ((int)(((byte)(255)))));
            this.EntityTableBaGrid.EnableSelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(115)))), ((int)(((byte)(138)))), ((int)(((byte)(156)))));
            this.EntityTableBaGrid.EnableSelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(231)))), ((int)(((byte)(231)))), ((int)(((byte)(255)))));
            this.EntityTableBaGrid.GridColor = System.Drawing.Color.White;
            this.EntityTableBaGrid.Location = new System.Drawing.Point(8, 3);
            this.EntityTableBaGrid.MultiSelect = false;
            this.EntityTableBaGrid.Name = "EntityTableBaGrid";
            this.EntityTableBaGrid.ReadOnly = true;
            this.EntityTableBaGrid.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
            this.EntityTableBaGrid.RowHeadersVisible = false;
            this.EntityTableBaGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
            this.EntityTableBaGrid.Size = new System.Drawing.Size(680, 279);
            this.EntityTableBaGrid.TabIndex = 4;
            this.EntityTableBaGrid.ValueField = null;
            // 
            // iDDataGridViewTextBoxColumn1
            // 
            this.iDDataGridViewTextBoxColumn1.DataPropertyName = "ID";
            this.iDDataGridViewTextBoxColumn1.HeaderText = "ID";
            this.iDDataGridViewTextBoxColumn1.Name = "iDDataGridViewTextBoxColumn1";
            this.iDDataGridViewTextBoxColumn1.ReadOnly = true;
            // 
            // geoTableFKDataGridViewTextBoxColumn
            // 
            this.geoTableFKDataGridViewTextBoxColumn.DataPropertyName = "GeoTableFK";
            this.geoTableFKDataGridViewTextBoxColumn.HeaderText = "GeoTableFK";
            this.geoTableFKDataGridViewTextBoxColumn.Name = "geoTableFKDataGridViewTextBoxColumn";
            this.geoTableFKDataGridViewTextBoxColumn.ReadOnly = true;
            // 
            // nameDataGridViewTextBoxColumn1
            // 
            this.nameDataGridViewTextBoxColumn1.DataPropertyName = "Name";
            this.nameDataGridViewTextBoxColumn1.HeaderText = "Name";
            this.nameDataGridViewTextBoxColumn1.Name = "nameDataGridViewTextBoxColumn1";
            this.nameDataGridViewTextBoxColumn1.ReadOnly = true;
            this.nameDataGridViewTextBoxColumn1.Width = 255;
            // 
            // kindDataGridViewTextBoxColumn1
            // 
            this.kindDataGridViewTextBoxColumn1.DataPropertyName = "Kind";
            this.kindDataGridViewTextBoxColumn1.HeaderText = "Kind";
            this.kindDataGridViewTextBoxColumn1.Name = "kindDataGridViewTextBoxColumn1";
            this.kindDataGridViewTextBoxColumn1.ReadOnly = true;
            this.kindDataGridViewTextBoxColumn1.Width = 200;
            // 
            // EntityBindingManager
            // 
            this.EntityBindingManager.DataMember = "LocationEntities";
            this.EntityBindingManager.DataSource = this.geoDataSet.LocationEntities;
            this.EntityBindingManager.DefaultTransactionState = Framework.baInterfaces.TransactionStateKind.Null;
            this.EntityBindingManager.Enabled = false;
            this.EntityBindingManager.TableName = "LocationEntities";
            this.EntityBindingManager.TransactionState = Framework.baInterfaces.TransactionStateKind.Null;
            // 
            // addEditDelDetailView
            // 
            this.addEditDelDetailView.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.addEditDelDetailView.BindingManager = null;
            this.addEditDelDetailView.Cursor = System.Windows.Forms.Cursors.Default;
            this.addEditDelDetailView.Location = new System.Drawing.Point(6, 313);
            this.addEditDelDetailView.Name = "addEditDelDetailView";
            this.addEditDelDetailView.OldTransactionState = Framework.baInterfaces.TransactionStateKind.Null;
            this.addEditDelDetailView.Size = new System.Drawing.Size(467, 24);
            this.addEditDelDetailView.TabIndex = 7;
            this.addEditDelDetailView.TransactionState = Framework.baInterfaces.TransactionStateKind.Initial;
            // 
            // EntityTextBoxView
            // 
            this.EntityTextBoxView.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.EntityTextBoxView.Behaviour = Framework.baInterfaces.ComponentUsage.None;
            this.EntityTextBoxView.BindingManager = null;
            this.EntityTextBoxView.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.EntityTextBoxView.Location = new System.Drawing.Point(8, 288);
            this.EntityTextBoxView.Name = "EntityTextBoxView";
            this.EntityTextBoxView.Size = new System.Drawing.Size(199, 20);
            this.EntityTextBoxView.TabIndex = 8;
            this.EntityTextBoxView.TextField = null;
            // 
            // EntityComboView
            // 
            this.EntityComboView.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.EntityComboView.Behaviour = Framework.baInterfaces.ComponentUsage.None;
            this.EntityComboView.BindingManager = null;
            this.EntityComboView.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.EntityComboView.FormattingEnabled = true;
            this.EntityComboView.Location = new System.Drawing.Point(213, 287);
            this.EntityComboView.Name = "EntityComboView";
            this.EntityComboView.Size = new System.Drawing.Size(473, 21);
            this.EntityComboView.TabIndex = 6;
            this.EntityComboView.TextField = "";
            this.EntityComboView.ValueField = "";
            // 
            // GeoBindingRelation
            // 
            this.GeoBindingRelation.DetailBindingManager = this.EntityBindingManager;
            this.GeoBindingRelation.DetailForeignKey = null;
            this.GeoBindingRelation.MasterBindingManager = this.GeoBindingManager;
            this.GeoBindingRelation.MasterPrimaryKey = null;
            this.GeoBindingRelation.Relation = Framework.baInterfaces.RelationKind.Null;
            // 
            // LookupForm
            // 
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.ClientSize = new System.Drawing.Size(703, 567);
            this.Controls.Add(this.splitContainer1);
            this.MinimumSize = new System.Drawing.Size(711, 601);
            this.Name = "LookupForm";
            this.ShowInTaskbar = false;
            this.Text = "Sample Form";
            this.Shown += new System.EventHandler(this.LookupForm_Shown);
            ((System.ComponentModel.ISupportInitialize)(this.geoDataSet)).EndInit();
            this.splitContainer1.Panel1.ResumeLayout(false);
            this.splitContainer1.Panel1.PerformLayout();
            this.splitContainer1.Panel2.ResumeLayout(false);
            this.splitContainer1.Panel2.PerformLayout();
            this.splitContainer1.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.GeoTablebaGrid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.GeoBindingManager)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.EntityTableBaGrid)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.EntityBindingManager)).EndInit();
            this.ResumeLayout(false);

        }

        #endregion

        private baTreeView GeoTblBaTreeView;
        private SplitContainer splitContainer1;
        private baGrid GeoTablebaGrid;
        private baGrid EntityTableBaGrid;
        private DataGridViewTextBoxColumn iDDataGridViewTextBoxColumn1;
        private DataGridViewTextBoxColumn geoTableFKDataGridViewTextBoxColumn;
        private DataGridViewTextBoxColumn nameDataGridViewTextBoxColumn1;
        private DataGridViewTextBoxColumn kindDataGridViewTextBoxColumn1;
        private DataGridViewTextBoxColumn iDDataGridViewTextBoxColumn;
        private DataGridViewTextBoxColumn parentIDDataGridViewTextBoxColumn;
        private DataGridViewTextBoxColumn nameDataGridViewTextBoxColumn;
        private DataGridViewTextBoxColumn kindDataGridViewTextBoxColumn;
        private DataGridViewTextBoxColumn descriptionDataGridViewTextBoxColumn;

    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Canada Canada
Software development experience since 1993

Skills
- Programming Languages: C# .NET, Delphi, C++, Java and VB
- Development Methodologies (SDLC): RUP, Scrum and XP
- Database: SQL server, Oracle, Apollo database and MS Access.

Educations & Certificates
- Microsoft® Certified Professional (MCP)
- Sun® Certified Java2 Programmer
- B.S. in computer science

Comments and Discussions