/// <summary>
        /// Handles the DoubleClick event of the gridOutstandingPicklistDetail control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
        private void gridOutstandingPicklistDetail_DoubleClick(object sender, EventArgs e)
        {
            DataRow dr = gridViewConfirmation.GetFocusedDataRow();

            if (dr != null)
            {
                OrderDetailForm orderDetailForm = new OrderDetailForm(Convert.ToInt32(dr["ItemID"]), Convert.ToInt32(dr["UnitID"]));
                orderDetailForm.StartPosition = FormStartPosition.CenterParent;
                this.Enabled = false;
                orderDetailForm.ShowDialog();
                this.Enabled = true;
            }
        }
        private void gridOrderDetailView_DoubleClick(object sender, EventArgs e)
        {
            var orderDetail = (OrderDetailViewModel)gridOrderDetailView.GetFocusedRow();

            if (orderDetail != null)
            {
                var orderDetailForm = new OrderDetailForm(orderDetail.ItemID, orderDetail.UnitID)
                {
                    StartPosition = FormStartPosition.CenterParent
                };
                this.Enabled = false;
                orderDetailForm.ShowDialog();
                this.Enabled = true;
            }
        }