Ejemplo n.º 1
0
        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.getDealerWhileSearching(type, txt_search.Text);
                        grd_selectDealer.DataSource = dt;
                    }
                }
                else
                {
                    COM_MESSAGE.validationMessage("Please Select Type to Search ");
                }
            }
            catch (Exception ex)
            {
                COM_MESSAGE.exceptionMessage(ex.Message);
            }
        }