private void button1_Click(object sender, EventArgs e) { DataGridViewRow dr = this.dg1.CurrentRow; ItemDataEdit ie = new ItemDataEdit(dr, "2"); ie.ShowDialog(); }
private void dg1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { DataGridViewRow dr = this.dg1.CurrentRow; ItemDataEdit ie = new ItemDataEdit(dr, "0"); ie.ShowDialog(); }
private void btnAdd_Click(object sender, EventArgs e) { ItemDataEdit ie = new ItemDataEdit("1"); ie.ShowDialog(); }