private void bteSanPham_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            frmLookUp_SanPham_CauHinh frmLookUp = new frmLookUp_SanPham_CauHinh(true, String.Format("%{0}%", bteSanPham.Text));

            if (frmLookUp.ShowDialog() == DialogResult.OK)
            {
                bteSanPham.EditValue = String.Empty;
                bteSanPham.Tag       = frmLookUp.SelectedItems;
                foreach (DMSanPhamInfo selectedItem in frmLookUp.SelectedItems)
                {
                    bteSanPham.EditValue += selectedItem.MaSanPham + ",";
                }
                LoadDataGridSanPham();
            }
        }
 private void bteSanPham_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         frmLookUp_SanPham_CauHinh frmLookUp = new frmLookUp_SanPham_CauHinh(true, String.Format("%{0}%", bteSanPham.Text));
         if (frmLookUp.ShowDialog() == DialogResult.OK)
         {
             bteSanPham.Tag = frmLookUp.SelectedItems;
             foreach (DMSanPhamInfo selectedItem in frmLookUp.SelectedItems)
             {
                 bteSanPham.EditValue += selectedItem.MaSanPham + ",";
             }
             LoadDataGridSanPham();
         }
     }
 }
        public void TestLookUpSanPham_CauHinh()
        {
            frmLookUp_SanPham_CauHinh frmLookUp = new frmLookUp_SanPham_CauHinh();

            frmLookUp.ShowDialog();
        }