//public void AutoComplete()
 //{
 //    List<string> alist = aCustomersBO.Select_All().Select(p=>p.Name).ToList();
 //    AutoCompleteStringCollection list = new AutoCompleteStringCollection();
 //    if (alist != null)
 //    {
 //        for (int i = 0; i < alist.Count; i++)
 //        {
 //            list.Add(alist[i].ToString());
 //        }
 //    }
 //    txtName.MaskBox.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
 //    txtName.MaskBox.AutoCompleteSource = AutoCompleteSource.CustomSource;
 //    txtName.MaskBox.AutoCompleteCustomSource = list;
 //}
 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();
 }
 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);
     }
 }