/// <summary>
        /// Handles the Click event of the btnCancelIssue 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 btnCancelIssue_Click(object sender, EventArgs e)
        {
            DataRow dr = gridOutstandingPickListView.GetFocusedDataRow();

            if (dr != null)
            {
                if (DialogResult.Yes == XtraMessageBox.Show("Are you sure you want to cancel this Issue? you will not be able to undo cancelation!", "Confirm cancelation", MessageBoxButtons.YesNo, MessageBoxIcon.Warning))
                {
                    _orderID = Convert.ToInt32(dr["ID"]);
                    PickList pl = new PickList();
                    pl.CancelOrderWithPickList(_orderID);
                    BindOutstandingPicklists();
                    gridOutstandingPicklistDetail.DataSource = null;
                    XtraMessageBox.Show("The Pick List has been Canceled", "Pick List has been Canceled!", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
            }
        }
 /// <summary>
 /// Handles the Click event of the btnCancelIssue 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 btnCancelIssue_Click(object sender, EventArgs e)
 {
     DataRow dr = gridOutstandingPickListView.GetFocusedDataRow();
     if (dr != null)
     {
         if (DialogResult.Yes == XtraMessageBox.Show("Are you sure you want to cancel this Issue? you will not be able to undo cancelation!", "Confirm cancelation", MessageBoxButtons.YesNo, MessageBoxIcon.Warning))
         {
             _orderID = Convert.ToInt32(dr["ID"]);
             PickList pl = new PickList();
             pl.CancelOrderWithPickList(_orderID);
             BindOutstandingPicklists();
             gridOutstandingPicklistDetail.DataSource = null;
             XtraMessageBox.Show("The Pick List has been Canceled", "Pick List has been Canceled!", MessageBoxButtons.OK, MessageBoxIcon.Information);
         }
     }
 }