Пример #1
0
        void grdView_DoubleClick(object sender, EventArgs e)
        {
            var Good       = (Good)this.grdView.SelectedRows[0].DataBoundItem;
            var updateForm = new UpdateGood(Good.id);

            updateForm.ShowDialog();
            this.ShowAllGood();
        }
Пример #2
0
        void grdView1_DoubleClick(object sender, EventArgs e)
        {
            var Good       = (Good)this.grdView1.SelectedRows[0].DataBoundItem;
            var updateForm = new UpdateGood(Good.id);

            updateForm.ShowDialog();
            this.ShowAllGood();
            var db = new DataDeAnCEntities();

            grdView1.DataSource = db.Goods.Where(x => x.Code.Contains(txtSearch.Text)).ToList();
        }