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(); } }
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; }
public xmlfileDGWF(iDataGridWF idg, Hashtable adict) : base(idg, adict) { this.tslUpdate.Visible = false; this.toolStripLabel2.Visible = false; }
public DataGridWF(iDataGridWF idg, Hashtable adict, bool pInitializeFlag) : this(idg, adict, pInitializeFlag, BindingListOptions.none) { }
public DataGridWF(iDataGridWF idg, Hashtable adict, BindingListOptions bloption) : this(idg, adict, true, bloption) { }
public DataGridWF(iDataGridWF idg, Hashtable adict) : this(idg, adict, BindingListOptions.none) { }