Example #1
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            SizeNew sn = new SizeNew(0);

            sn.ShowDialog();
            mainsql();
        }
Example #2
0
        private void btnupdate_Click(object sender, EventArgs e)
        {
            SizeNew sn = new SizeNew(Convert.ToInt32(SizeDGV[2, SizeDGV.CurrentCell.RowIndex].Value.ToString()));

            sn.ShowDialog();
            //SizeDGV.Rows[e.RowIndex].Cells[0].Value.ToString();
            //SizeDGV.Rows[rowindex].Cells["id"].Value.ToString();
            //SizeDGV
            //dt.DefaultView[currow]["编号"].ToString());
        }