Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            DataGridViewRow dr = this.dg1.CurrentRow;
            ItemDataEdit    ie = new ItemDataEdit(dr, "2");

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

            ie.ShowDialog();
        }
Example #3
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            ItemDataEdit ie = new ItemDataEdit("1");

            ie.ShowDialog();
        }