示例#1
0
        public DataGridWF(iDataGridWF idg, Hashtable adict, bool pInitializeFlag, BindingListOptions bloption)
        {
            InitializeComponent();
            this.idg  = idg;
            this.dict = adict;
            switch (bloption)
            {
            case BindingListOptions.AllowNewNo:
                this.customersBindingSource.AllowNew = false;
                break;

            case BindingListOptions.AllowModifyNo:
                this.customersBindingSource.AllowNew = false;
                this.dataGridView1.ReadOnly          = true;
                break;

            case BindingListOptions.AllowNewNoAndNoPromptReload:
                this.customersBindingSource.AllowNew = false;
                break;

            case BindingListOptions.none:
                break;
            }
            this.InitializeFlag = pInitializeFlag;
            if (InitializeFlag)
            {
                Initialize();
            }
        }
示例#2
0
 private void button1_Click(object sender, EventArgs e)
 {
     try
     {
         iDataGridWF idg = new iDataGridWF(richTextBox1.Text, "TempTable", _conn);
         DataGridWF  dg  = new DataGridWF(idg, null);
         dg.ShowMDIchild(this.MdiParent);
     }
     catch (Exception er)
     {
         MessageBox.Show(er.Message + '\n' + er.Source);
     }
 }
 public DataGridWFreadonly(iDataGridWF idg, Hashtable adict, BindingListOptions bloption) : base(idg, adict, bloption)
 {
     this.tslUpdate.Visible       = false;
     this.toolStripLabel2.Visible = false;
     this.tslImportXls.Visible    = false;
 }
示例#4
0
 public xmlfileDGWF(iDataGridWF idg, Hashtable adict) : base(idg, adict)
 {
     this.tslUpdate.Visible       = false;
     this.toolStripLabel2.Visible = false;
 }
示例#5
0
 public DataGridWF(iDataGridWF idg, Hashtable adict, bool pInitializeFlag)
     : this(idg, adict, pInitializeFlag, BindingListOptions.none)
 {
 }
示例#6
0
 public DataGridWF(iDataGridWF idg, Hashtable adict, BindingListOptions bloption)
     : this(idg, adict, true, bloption)
 {
 }
示例#7
0
 public DataGridWF(iDataGridWF idg, Hashtable adict)
     : this(idg, adict, BindingListOptions.none)
 {
 }