private void btnEditCustomers_Click(object sender, EventArgs e)
 {
     int ID = Convert.ToInt32(viewAvailableCustomers.GetFocusedRowCellValue("ID"));
     frmUpd_Customers afrmUpd_Customers = new frmUpd_Customers(this, ID);
     afrmUpd_Customers.ShowDialog();
 }
 private void btnEditCustomers_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     try
     {
         int ID = Convert.ToInt32(viewAvailableCustomers.GetFocusedRowCellValue("ID"));
         frmUpd_Customers afrmUpd_Customers = new frmUpd_Customers(this, ID);
         afrmUpd_Customers.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show("frmAddListCustomerToCustomerGroups.btnEditCustomers_ButtonClick\n" + ex.ToString(), "Error ", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
 private void btnEdit_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     int ID = int.Parse(viewAvailableCustomers.GetFocusedRowCellValue("ID").ToString());
     frmUpd_Customers afrmUpd_Customers = new frmUpd_Customers(this,ID);
     afrmUpd_Customers.ShowDialog();
 }