示例#1
0
        private void repositoryItemCheckEdit1_CheckedChanged(object sender, EventArgs e)
        {
            DataRow     row         = gridView1.GetDataRow(gridView1.FocusedRowHandle);
            string      ProductCode = row["productCode"].ToString();
            New_Product NewProd     = new New_Product(ProductCode, "Product");

            NewProd.ShowDialog();

            Inventory.Database.ProductData Prod = new Inventory.Database.ProductData();
            try
            {
                Prod.FnConn();
                DataTable dtProd = Prod.FillData();
                gridControl1.DataSource = dtProd;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message.ToString());
            }
        }