private void lookUpEdit1_EditValueChanged(object sender, EventArgs e) { if(lkMode.EditValue !=null) { Balance balance = new Balance(); balance.GetSOHByMode(Convert.ToInt32(lkMode.EditValue)); gridSOH.DataSource = balance.GetSOHByMode(Convert.ToInt32(lkMode.EditValue)); } }