private void dataCowList_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            if (e.RowIndex == -1)
            {
                return;
            }
            var form = new CowDetailForm();

            form.CowNO = ((DataRowView)fKCowOrderInBindingSource[e.RowIndex]).Row["CowNO"].ToString();
            var result = form.ShowDialog();

            if (result == System.Windows.Forms.DialogResult.Yes)
            {
                orderInTableAdapter.FillByPK(farmManageDataSet.OrderIn, OrderInID);
            }
        }
Example #2
0
        private void dgvGrid_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            if (e.RowIndex == -1)
            {
                return;
            }
            var form = new CowDetailForm();

            form.CowNO = ((DataRowView)cowBindingSource[e.RowIndex]).Row["CowNO"].ToString();
            var result = form.ShowDialog();

            if (DialogResult.Yes == result)
            {
                initSearch();
            }
        }