public void do_search() { try { System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.WaitCursor; BLL.ICustomer bll = new BLL.Customer(); var supcust_group = ""; if (comboBox1.SelectedValue != null) { supcust_group = comboBox1.SelectedValue.ToString(); } var dt = bll.SearchCusBalance(txt_keyword.Text.Trim(), supcust_group); this.dg_data.DataSource = dt; } catch (Exception e) { Program.frmMsg(e.Message); } finally { System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.Default; } }