private void txt_search_TextChanged(object sender, EventArgs e) { DataTable dt = new DataTable(); int type = cmb_search.SelectedIndex; try { if (type > 0) { if (!string.IsNullOrWhiteSpace(txt_search.Text)) { dt = MANAGEDB.getDestinationWhileSearching(type, txt_search.Text); grd_selectDestination.DataSource = dt; } } else { COM_MESSAGE.validationMessage("Please Select Type to Search "); } } catch (Exception ex) { COM_MESSAGE.exceptionMessage(ex.Message); } }