Пример #1
0
        private void btn_Add_Click(object sender, System.EventArgs e)
        {
//			AddNewItemPromotion = true;
//			DataRow dr = dtItemPromotion.NewRow();
//			dtItemPromotion.Rows.Add(dr);
//			this.gridControlMd_ItemPromotion.Refresh();
//			this.gridViewMd_ItemPromotion.FocusedRowHandle = dtItemPromotion.Rows.Count - 1;

            frmItem_Add myform;

            myform = new frmItem_Add();
            myform.ShowDialog();
            BindGrid();
        }
Пример #2
0
        private void btn_Add_Click(object sender, System.EventArgs e)
        {
            //			AddNewItemPromotion = true;
            //			DataRow dr = dtItemPromotion.NewRow();
            //			dtItemPromotion.Rows.Add(dr);
            //			this.gridControlMd_ItemPromotion.Refresh();
            //			this.gridViewMd_ItemPromotion.FocusedRowHandle = dtItemPromotion.Rows.Count - 1;

            frmItem_Add myform;
            myform = new frmItem_Add();
            myform.ShowDialog();
            BindGrid();
        }